Property 'onSubmit' does not exist on type 'IntrinsicAttributes & IntrinsicClassAttributes<Form> & Readonly<FormProps> & Readonly<{ children?: ReactNode; }>'
I think this might resolve the problem.
Please makes sure these boxes are checked before submitting your PR, thank you!
[x] Make sure you are merging your commits to master branch.
[x] Add some descriptions and refer relative issues for you PR.
[x] Rebase your commits to make your pull request meaningful.
[x] Make sure that your changes pass npm test, npm run lint and npm run build.
Changes in this pull request
Fix typescript type error using Form component and onSubmit prop
As described in https://github.com/ElemeFE/element-react/issues/1037
Using React With Typescript, the following :
Causes a type error :
I think this might resolve the problem.
Please makes sure these boxes are checked before submitting your PR, thank you!
master
branch.npm test
,npm run lint
andnpm run build
.Changes in this pull request