-
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 block: Fix submenu not opening on macOS Safari #62800
Navigation block: Fix submenu not opening on macOS Safari #62800
Conversation
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.
To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
I think we need to add this fix to WP 6.6 and maybe even release a Gutenberg 18.6.1 version, don't we? cc: @cbravobernal, @gziolo, @westonruter |
Flaky tests detected in 53d747b. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/9648057681
|
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.
Aside: It would be great if the navigation block could start to leverage the Popover API since it is newly available in all browsers which would enable the menus to work even with JavaScript turned off entirely (cf. https://core.trac.wordpress.org/ticket/50182#comment:9)
Co-authored-by: luisherranz <luisherranz@git.wordpress.org> Co-authored-by: westonruter <westonruter@git.wordpress.org>
I just cherry-picked this PR to the wp/6.6-rc-1 branch to get it included in the next release: f5ee0dd |
Co-authored-by: luisherranz <luisherranz@git.wordpress.org> Co-authored-by: westonruter <westonruter@git.wordpress.org>
Co-authored-by: luisherranz <luisherranz@git.wordpress.org> Co-authored-by: westonruter <westonruter@git.wordpress.org>
@cbravobernal just released GB 18.6.1 with this fix: |
What?
This pull request fixes an issue in Safari Desktop (macOS) where submenus do not open upon clicking due to a change in #62160.
Why?
Right now (Gutenberg 18.6), the submenus that have the "Open on Click" option do not open on Safari Desktop.
How?
For now, I have simply reverted the change that causes the submenus to stop opening. I haven't investigated exactly why it happens yet.
It took us a while to figure out how to make the focus logic work properly in Safari since it functions completely differently than in Chrome and Firefox. That logic is also not as clean and straightforward as we would like:
I think for now we could leave this event handler as asynchronous to fix this bug and take a closer look at the Safari focus logic in a subsequent PR.
Testing Instructions