-
-
Notifications
You must be signed in to change notification settings - Fork 5.2k
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
Custom filter form does'nt work #8175
Comments
I am facing this exact issue I have created a repo with minimal code to reproduce it https://github.com/hichamtaoufikallah/react-admin-custom-filter-issue |
Right, the documentation for custom filter forms is missing the FormContextProvider. Marking this as a dcumentation bug. |
@fzaninotto please can you provide any fast hint on how to fix this error? |
I just followed the changes in the linked PR, and I confirm that it works. Thanks @WiXSL @fzaninotto |
Thanks for the quick support! 👍🏻🚀 |
Thanks @WiXSL, this was driving me nuts today trying to figure out why my code wasn't working. |
What you were expecting:
I would like to create a custom filter form submitted by a button.
What happened instead:
I took the example in the doc, made quick adaptation but I have an error when I put any of react-admin input field in the form.
https://marmelab.com/react-admin/FilteringTutorial.html#custom-filter-form
Related code:
https://codesandbox.io/s/custom-filter-form-4b5of1
Error in the console :
Environment
The text was updated successfully, but these errors were encountered: