plotly / plotly/react-plotly.js

onMouseLeave not getting called

Open
#318 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
1.1k
Forks
138
Avg merge
3d 2h
Merged PRs (30d)
4

Description

Hello. I am trying to capture onMouseLeave event when a user move a mouse cursor out of the Plot.

<Plot onMouseLeave={()=>{console.log("good bye!")}}/>

onMouseLeave event seems to be ignored by this component. Is this expected? Is there another way to capture this event?

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the reported behavior with the Plot component and its onMouseLeave prop using the example in the issue. Trace how mouse events are passed through the component, then verify that leaving the plot triggers the callback or that the supported alternative is clearly documented.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, react
Domain
data-visualization, frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.