You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My problem is that mouseleave@document at firefox does not work, there are some workaround which could make it work, but i cannot implement it inside stimulus.
does not work on firefox
document.querySelector("body").addEventListener("mouseenter", () => {
console.log("mouseenter");
});
or
document.documentElement.addEventListener('mouseleave', () => {})
does work.
any hint how i could make it work?
thanks for suggestions
my action data looks like following:
data-action="mouseleave@document->newsletter-popup#show"
which works perfeclty under chrome.
The text was updated successfully, but these errors were encountered:
papppeter
changed the title
Firefox mouseleave@document does not work
Firefox mouseleave@document action does not work
Jul 4, 2023
My problem is that mouseleave@document at firefox does not work, there are some workaround which could make it work, but i cannot implement it inside stimulus.
This shows clearly the issue
https://stackoverflow.com/questions/66245558/mouseenter-and-mouseleave-event-listeners-on-document-not-working-in-firefox
document.addEventListener("mouseenter", () => {
console.log("mouseenter");
});
does not work on firefox
document.querySelector("body").addEventListener("mouseenter", () => {
console.log("mouseenter");
});
or
document.documentElement.addEventListener('mouseleave', () => {})
does work.
any hint how i could make it work?
thanks for suggestions
my action data looks like following:
data-action="mouseleave@document->newsletter-popup#show"
which works perfeclty under chrome.
The text was updated successfully, but these errors were encountered: