Skip to content

Commit aafa886

Browse files
committed
bail out of the unhover handlers if hovermode is false
1 parent 98c18f8 commit aafa886

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/traces/sankey/plot.js

+2
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,7 @@ module.exports = function plot(gd, calcData) {
177177
};
178178

179179
var linkUnhover = function(element, d, sankey) {
180+
if(gd._fullLayout.hovermode === false) return;
180181
d3.select(element).call(linkNonHoveredStyle.bind(0, d, sankey, true));
181182
gd.emit('plotly_unhover', {
182183
event: d3.event,
@@ -240,6 +241,7 @@ module.exports = function plot(gd, calcData) {
240241
};
241242

242243
var nodeUnhover = function(element, d, sankey) {
244+
if(gd._fullLayout.hovermode === false) return;
243245
d3.select(element).call(nodeNonHoveredStyle, d, sankey);
244246
gd.emit('plotly_unhover', {
245247
event: d3.event,

0 commit comments

Comments
 (0)