Skip to content
New issue

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

Inputs throw error when passing react-final-form props #5288

Closed
WiXSL opened this issue Sep 22, 2020 · 1 comment · Fixed by #5300
Closed

Inputs throw error when passing react-final-form props #5288

WiXSL opened this issue Sep 22, 2020 · 1 comment · Fixed by #5300

Comments

@WiXSL
Copy link
Contributor

WiXSL commented Sep 22, 2020

Some of react-final-form FieldProps props are not sanitized in react-admin inputs.
For example:

<BooleanInput
     allowEmpty
     label="Can edit?"
     source="canEdit"
     beforeSubmit={() => false} // <-- Throws error
/>
  • React-admin version: 3.8.5
  • React version: 16.13.1
  • Browser: Chrome
@djhi
Copy link
Collaborator

djhi commented Sep 24, 2020

Thanks for reporting

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants