Skip to content

Conversation

SabineWren
Copy link
Contributor

Fixes #5277
Reverts #5256

The 'target' property changes when bubbling out of Shadow DOM. Unfortunately, that conflicts with event throttling, as the 'target' changes before the throttler's setTimeout calls the hover callback. I added code that captures the original target and passes it to the hover callback.

I'm reverting a previous commit because composedPath isn't needed when the event target is read before the event bubbles outside the shadow root.

@archmoj archmoj added status: reviewable bug something broken community community contribution labels Nov 12, 2021
@archmoj
Copy link
Contributor

archmoj commented Nov 12, 2021

💃

@archmoj archmoj merged commit 8336f88 into plotly:master Nov 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug something broken community community contribution

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Ploty.js in Shadow DOM hover flicker

2 participants