We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f717986 commit 0a4fd73Copy full SHA for 0a4fd73
src/components/legend/draw.js
@@ -30,16 +30,15 @@ module.exports = function draw(gd, container) {
30
var layer;
31
32
// Check whether this is the main legend (ie. called without any container)
33
- if(container && container._inHover) {
+ var inHover = container && container._inHover;
34
+ if(inHover) {
35
layer = container.layer;
36
clipId += '-hover';
37
} else {
38
container = fullLayout.legend || {};
39
layer = fullLayout._infolayer;
40
}
41
- var inHover = !!container._inHover;
42
-
43
if(!layer) return;
44
45
if(!gd._legendMouseDownTime) gd._legendMouseDownTime = 0;
0 commit comments