x-on mouseover.away event doesn't works on Chrome/Chromium #2225
Replies: 2 comments
|
Does the event triggers at all when you move on an empty space. Alpine just set a standard event listener on window when you use the away modifier. Maybe use mouseenter and mouseleave instead (so you don't need debounce) |
|
The issue here is that mouse over will trigger (and trigger an away) whenever your mouse moved between elements inside of this. You should use mouseenter and mouseleave. https://developer.mozilla.org/en-US/docs/Web/API/Element/mouseover_event
|
Uh oh!
There was an error while loading. Please reload this page.
The following code is for a navbar dropdown. It works perfectly on Mozilla Firefox but on Chromium and Chrome the
x-on:mouseover.debounce.50.away="dropdown = false"doesn't triggers and the dropdown stays open.Check the comparison here
Not even a
alert('test')works.All reactions