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

Regression Bug: onNodeMouseEnter and onNodeMouseLeave fire more than once since 11.10.0, but was okay in 11.9.4 #4265

Closed
simonharrer opened this issue May 8, 2024 · 2 comments

Comments

@simonharrer
Copy link

Describe the Bug

Regression Bug: onNodeMouseEnter and onNodeMouseLeave fire more than once since 11.10.0, but was okay in 11.9.4

<ReactFlow
          onNodeMouseEnter={
            (event, node) => {
              console.log('onNodeMouseEnter', event, node);
            }
          }
          onNodeMouseLeave={
            (event, node) => {
              console.log('onNodeMouseLeave', event, node);
            }
          }

This should fire only once when hovering over a node. Since 11.10.0 it fires multiple times.

Your Example Website or App

No response

Steps to Reproduce the Bug or Issue

  1. Register onNodeMouseEnter listener.
  2. Register onNodeMouseLeave listener.
  3. Hover over it.
  4. Should fire the enter/leave events as one would expect, but not more.

Expected behavior

Fire event once.

Screenshots or Videos

No response

Platform

  • OS: macOS
  • Browser: Chrome

Additional context

No response

@bcakmakoglu
Copy link
Contributor

Can you provide a repro for this issue?
Trying to reproduce this in a fresh sandbox and it seems to work fine:

Screen.Recording.2024-05-09.at.09.22.22.mov

@moklick
Copy link
Member

moklick commented May 10, 2024

I can't reproduce this either. Please re-open with a codesandbox if the issue persists: https://new.reactflow.dev

@moklick moklick closed this as completed May 10, 2024
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

3 participants