Skip to content

Commit bbaaa6f

Browse files
committed
fix 6638 legend groups toggle - regression of 6535
1 parent 5342fe4 commit bbaaa6f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/legend/draw.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -379,7 +379,7 @@ function drawOne(gd, opts) {
379379
}
380380
},
381381
clickFn: function(numClicks, e) {
382-
var clickedTrace = groups.selectAll('g.traces').filter(function() {
382+
var clickedTrace = layer.selectAll('g.traces').filter(function() {
383383
var bbox = this.getBoundingClientRect();
384384
return (
385385
e.clientX >= bbox.left && e.clientX <= bbox.right &&

0 commit comments

Comments
 (0)