-
-
Notifications
You must be signed in to change notification settings - Fork 32.4k
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
[Button][material-next] Fix some event handlers being ignored #37647
[Button][material-next] Fix some event handlers being ignored #37647
Conversation
Let me know if you think we should add other events to the test. |
Netlify deploy previewhttps://deploy-preview-37647--material-ui.netlify.app/ Bundle size report |
Hey @mnajdova! Thanks for the feedback. I refactored the fix to use The |
Well this is somewhat expected as we are not handling them in the component, but they are handled in the hook. @michaldudak what are we doing with these use-cases in Base UI? |
These event handlers are common to all HTML elements, so they are not explicitly listed in |
We can discuss this separately |
Fixes: #37645
Four event handlers were not being handled in
getRippleHandlers
, so those were lost:onClick
onFocus
onKeyUp
onKeyDown
I also added tests for those events.