-
-
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
[Menu][joy] Remove open
and onClose
props
#38354
Conversation
Netlify deploy previewhttps://deploy-preview-38354--material-ui.netlify.app/ Bundle size report |
1a3c817
to
2f8b9c5
Compare
@michaldudak Is this mean that |
Yes. If there are use cases where it would be needed, we can think about how to implement it. |
@siriwatknp, if the explicit use of the Dropdown is not desired, you can use a pattern similar to what's in #38934 - a wrapper component that uses |
@siriwatknp, do you think this PR still makes sense, or should we discard it? |
The
open
andonClose
props are no longer exposed by the Menu component. It is now the responsibility of the Dropdown to control the open/close state. These props were inadvertently omitted when implementing the Dropdown.This is a part of the attempt to solve a problem described in #38324.