Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e0be8c5

Browse files
committed
Explicitly initialize toggleOtherLegends to false in toggle mode
1 parent 8ee735e commit e0be8c5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/components/legend/handle_click.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -303,6 +303,7 @@ exports.handleTitleClick = function handleTitleClick(gd, legendObj, mode) {
303303
});
304304

305305
toggleThisLegend = !anyVisibleHere;
306+
toggleOtherLegends = false;
306307
} else {
307308
// isolate this legend or set all legends to visible
308309
const anyVisibleElsewhere = allLegendItems.some(function(item) {

0 commit comments

Comments
 (0)