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

FireFox hides menu when hovering over select options #130

Open
JoryHogeveen opened this issue Oct 19, 2023 · 1 comment
Open

FireFox hides menu when hovering over select options #130

JoryHogeveen opened this issue Oct 19, 2023 · 1 comment
Assignees
Milestone

Comments

@JoryHogeveen
Copy link
Owner

JoryHogeveen commented Oct 19, 2023

Describe the bug

For some reason when using firefox it removes focus on the menu when hovering over the select dropdown which triggers WordPress core to hide the menu again.

Select options aren't really usual within the toolbar so I doubt WordPress core will fix this issue.

Reference: https://wordpress.org/support/topic/impossible-to-change-the-position-of-the-menu/

@JoryHogeveen JoryHogeveen added this to the 1.8.9 milestone Oct 19, 2023
@JoryHogeveen JoryHogeveen self-assigned this Oct 19, 2023
@JoryHogeveen
Copy link
Owner Author

Found the solution here: https://stackoverflow.com/a/811994/2539261
Apparently FireFox triggers the mouseleave event on the select element when moving to the select option. This triggers event bubbling and therefore triggers the WordPress toolbar script to hide the menu.

JoryHogeveen added a commit that referenced this issue Oct 19, 2023
@JoryHogeveen JoryHogeveen mentioned this issue Oct 19, 2023
2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant