ElemeFE / ElemeFE/element-react
typescript Property 'onSubmit' does not exist on type Form
Open
- Dominant language
- JavaScript
- Stars
- 2.8k
- Forks
- 435
- PR merge metrics
- No merged PRs in 30d
Description
### Description
Using React With Typescript, the following :
```
```
Causes a type error :
```
Property 'onSubmit' does not exist on type 'IntrinsicAttributes & IntrinsicClassAttributes & Readonly & Readonly<{ children?: ReactNode; }>'
```
I think this might resolve the problem.
### Reproduce Steps
```
```
### Error Trace (if possible)
N/A
### Solution
add onSubmit prop to FormProps interface : https://github.com/ElemeFE/element-react/pull/1036
Contributor guide
Assessment
This issue has not been assessed yet.