Open flaforgue opened 4 years ago
Using React With Typescript, the following :
<Form onSubmit={handleSubmit}>
Causes a type error :
Property 'onSubmit' does not exist on type 'IntrinsicAttributes & IntrinsicClassAttributes<Form> & Readonly<FormProps> & Readonly<{ children?: ReactNode; }>'
I think this might resolve the problem.
N/A
add onSubmit prop to FormProps interface : https://github.com/ElemeFE/element-react/pull/1036
Description
Using React With Typescript, the following :
Causes a type error :
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