-
Notifications
You must be signed in to change notification settings - Fork 4.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
Fix react warning for instanceId prop on a DOM element (<Button> component) #14599
Conversation
I'm on the fence about this. An alternative way to approach this would be to review all components wrapped by the Another alternative might be to create a HOC wrapping all leaf DOM elements to remove any props that shouldn't be a dom element attribute - so something like |
This might be much nicer. However, it might have also some performance implications if you wrap all leaf components with such HOC. I'm wondering whether passing thru props a few levels down isn't the root cause of this in the first place. |
The source of the |
So turns out the |
packages/components/CHANGELOG.md
Outdated
@@ -1,3 +1,9 @@ | |||
7.2.1 (Unreleased) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this is missing some ##
:)
Description
Was getting this warning appear whenever I clicked the menu toggle on a block:
This results from the
instanceId
prop getting passed through via<MenuItem />
How has this been tested?
Types of changes
Non-breaking change
Checklist: