-
-
Notifications
You must be signed in to change notification settings - Fork 5.3k
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
CloneButton should sanitize its rest props #2781
Comments
I'm not sure we should address this case.
But since we don't explicit the purpose of |
@fzaninotto Please add this as a note to docs. I lost 3 hours until find this issue and fix my problem. 😞
/CC: @djhi |
@mnlbox Waiting for your PR 😉 |
I'm a little new in react-admin and I think it's a little soon for me but thanks for your suggestion. 🤔 |
This is a documentation pull request. The documentation is located here and it seems you already have the text to put in it :) |
What you were expecting:
Using a
<CloneButton />
inside an<Toolbar />
from anEdit
view should not trigger any React warningsWhat happened instead:
Lots of warnings about unkown props passed by the
<Toolbar />
Steps to reproduce:
Using a
<CloneButton />
inside an<Toolbar />
from anEdit
view .Related code:
https://github.com/marmelab/react-admin/blob/master/packages/ra-ui-materialui/src/button/CloneButton.js#L25
Environment
The text was updated successfully, but these errors were encountered: