question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[regression] eventMouseEnter and eventMouseLeave triggered repeatedly on DOM update

See original GitHub issue

Hello,

I noticed an issue with eventMouseEnter and eventMouseLeave when the DOM is updated in a Vue component, as you can see in this sandbox.

The test variable is supposed to become true when the mouse enters an event, and false when the mouse leaves the event. I also added console.log() calls to see when the two events are fired.

As you can see in the sandbox, when the mouse enters the calendar event, both mouse events are fired repeatedly, one after the other.

More specifically, every time the DOM is updated while the mouse hovers over an event, both events are fired. If we don’t display the value of test on top of the calendar, this does not happen and the events are fired only once as they should be.

This issue does not happen with regular mouseenter and mouseleave Vue events. To illustrate this, I added a div showing the value of a test2 variable which updates on hover.

I am not sure if this issue happens only in the Vue implementation. I tried doing something similar in the regular version (here) by calling render() in both handlers, but I don’t think this is a good example as it should not be equivalent.

Thanks in advance for looking into this.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
arshawcommented, Aug 12, 2019

fixed in v4.3.1

FYI- there was a bug in a test, which allowed this regression. all fixed

Read more comments on GitHub >

github_iconTop Results From Across the Web

Prevent onmouseout when hovering child element of the ...
I found a similar post here: How to disable mouseout events triggered by child elements? However that solution uses jQuery. javascript · css...
Read more >
Scheduler - Change Log - Bryntum
The dependencies demo has been updated with a slider for adjusting it (#41) ... #5124 – Improve docs for eventMouseEnter and eventMouseLeave ......
Read more >
ionmonkey - Mercurial - Mozilla
Temporary permission hack for WebContacts pref("dom. ... We'd have to // make sure to observe them so we can update the cache when...
Read more >
All the Electron Docs! | Electron
Electron releases frequently. We release when there are significant bug fixes, new APIs or are updating versions of Chromium or Node.js. Updating Dependencies....
Read more >
eventMouseEnter - Docs - FullCalendar
Triggered when the user mouses over an event. Similar to the native mouseenter.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found