Skip to content
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] Reset hoverEnabled state on close #1461

Merged
merged 2 commits into from
Feb 24, 2025

Conversation

atomiks
Copy link
Contributor

@atomiks atomiks commented Feb 18, 2025

Closes #1450

The state needs to be re-enabled immediately upon close instead of unmount (which waits for animations), allowing a new hover of a submenu trigger to re-open its submenu before the close animation finishes

Note: opted to not add a test for this as it's browser-only and likely to be severely flaky or slow the tests due to timing issues

@atomiks atomiks added the component: menu This is the name of the generic UI component, not the React module! label Feb 18, 2025
Copy link

netlify bot commented Feb 18, 2025

Deploy Preview for base-ui ready!

Name Link
🔨 Latest commit fc0cf54
🔍 Latest deploy log https://app.netlify.com/sites/base-ui/deploys/67b6bae4f174540008e6e266
😎 Deploy Preview https://deploy-preview-1461--base-ui.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@atomiks atomiks merged commit 4e67abb into mui:master Feb 24, 2025
22 checks passed
@atomiks atomiks deleted the fix/menu-hover-enabled branch February 24, 2025 01:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: menu This is the name of the generic UI component, not the React module!
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Menu] Hovering over submenu trigger sometimes doesn't re-open submenu while it's closing
2 participants