-
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
Navigation mobile overlay closes unintentionally after clicking on submenu button #60371
Comments
CC: @WordPress/interactivity-api |
@fabiankaegy is this happening in 6.5? If so, we should at this as a point release bug potentially. |
@annezazu it is but I have not been able to test whether it isn't happening in 6.4.3. Will do that tomorrow. But yeah I do think this would be a nice point update |
Okay I was able to test it on 6.4.3 now and the issue does not happen there. So it is 6.5 specify. Because of that I do think that we should add this to a patch release |
I've been able to use the debugger to figure out that the issue is happening here: gutenberg/packages/block-library/src/navigation/view.js Lines 139 to 156 in dbd4cec
When you click away from the button element the focus gets lost for a moment which gets used as a trigger to close the navigation. |
When the navigation block is set to open submenus via the click event instead of hover, the mobile submenu collapses unintentionally after the user clicks on the submenu button once. See the attached video.
CleanShot.2024-04-02.at.14.59.49.mp4
The text was updated successfully, but these errors were encountered: