Skip to content

Commit 13c78d6

Browse files
authored
Merge pull request #6639 from plotly/fix6638-legend-groups-toggle
Fix legend groups toggle
2 parents 6ba88ca + bbaaa6f commit 13c78d6

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)