We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
With TypeScript there is an error, when I app extra props.
<Form component={FormComponent} onSubmit={handleSubmit} onCancel={handleCancel} />
Property 'onCancel' does not exist on type 'IntrinsicAttributes & FormProps<any, Partial<{ firstName: string; }>>'.
There should not be any error.
"@types/react": "^16.9.49", "react-final-form": "^6.5.1",
For the FieldRenderProps we have: [otherProp: string]: any;
[otherProp: string]: any;
Seems like we need the same for FormProps
The text was updated successfully, but these errors were encountered:
Update index.d.ts
ac0198c
final-form#864 FormProps interface doesn't support custom props.
Update index.d.ts (#867)
b487199
#864 FormProps interface doesn't support custom props.
Published fix in v6.5.2.
v6.5.2
Sorry, something went wrong.
{[string]: any}
No branches or pull requests
What is the current behavior?
With TypeScript there is an error, when I app extra props.
<Form component={FormComponent} onSubmit={handleSubmit} onCancel={handleCancel} />
Property 'onCancel' does not exist on type 'IntrinsicAttributes & FormProps<any, Partial<{ firstName: string; }>>'.
What is the expected behavior?
There should not be any error.
What's your environment?
"@types/react": "^16.9.49",
"react-final-form": "^6.5.1",
Other information
For the FieldRenderProps we have:
[otherProp: string]: any;
Seems like we need the same for FormProps
The text was updated successfully, but these errors were encountered: