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

Element.toFront prevents hover events on Firefox 83 #1127

Open
Kasoo opened this issue Dec 9, 2020 · 1 comment
Open

Element.toFront prevents hover events on Firefox 83 #1127

Kasoo opened this issue Dec 9, 2020 · 1 comment

Comments

@Kasoo
Copy link

Kasoo commented Dec 9, 2020

Element.toFront is implemented as an appendChild call to reposition the element within the DOM.

Similar to previous issues with IE (#225, #527) it appears that on Firefox 83 (and older) this causes the element to be temporarily removed from the DOM and thus prevents it receiving events.

This is notable when calling toFront from scroll event listeners as this will move the elements (and thus require a mouseout), and prevent that event from reaching the element.

@Kasoo
Copy link
Author

Kasoo commented Dec 9, 2020

Attached is a minimal example that replicates the problem on Firefox but works okay on Chrome.

test.html.txt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant