ElemeFE / ElemeFE/element-react

Form validation not compatible with React hook useRef()

Open
#1,088 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
2.8k
Forks
435
PR merge metrics
No merged PRs in 30d

Description

### Version

element-react 1.4.34

### Component
Form

### Description

When using `const refForm = React.useRef()`, I can't call `refForm.validate` because it's not existing on refForm property.

### Solution

Please use React hook to rewrite this project

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.