Skip to content

Commit 50fce27

Browse files
committed
check that hoveranywhere is still true before emitting unhover event
1 parent 9d4553b commit 50fce27

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎src/components/dragelement/unhover.js‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ unhover.wrapped = function(gd, evt, subplot) {
2626
if(gd._hoverAnywhereActive) {
2727
gd._hoverAnywhereActive = false;
2828

29-
if(evt && evt.target && !oldhoverdata) {
29+
// Make sure hoveranywhere is still enabled
30+
if(gd._fullLayout?.hoveranywhere && evt?.target && !oldhoverdata) {
3031
gd.emit('plotly_unhover', {
3132
event: evt,
3233
points: []

0 commit comments

Comments
 (0)