Skip to content

Commit 1b5b7e5

Browse files
committed
fix is isolated state in multi legend cases
1 parent e0e79b4 commit 1b5b7e5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/legend/handle_click.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ module.exports = function handleClick(g, gd, numClicks) {
198198

199199
isInGroup = (hasLegendgroup && fullData[i].legendgroup === legendgroup);
200200

201-
if(!isInGroup && fullData[i].visible === true && !Registry.traceIs(fullData[i], 'notLegendIsolatable')) {
201+
if(fullData[i].legend === thisLegend && !isInGroup && fullData[i].visible === true && !Registry.traceIs(fullData[i], 'notLegendIsolatable')) {
202202
isIsolated = false;
203203
break;
204204
}

0 commit comments

Comments
 (0)