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 2daab81 commit 61d01e6Copy full SHA for 61d01e6
src/components/legend/draw.js
@@ -30,12 +30,12 @@ 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) {
34
- container = fullLayout.legend || {};
35
- layer = fullLayout._infolayer;
36
- } else {
+ if(container) {
37
layer = container.layer;
38
clipId += '-hover';
+ } else {
+ container = fullLayout.legend || {};
+ layer = fullLayout._infolayer;
39
}
40
41
var inHover = !!container._inHover;
0 commit comments