Skip to content

Commit f588741

Browse files
committed
Fix bug to allow box selection when expanding existing box on multy-axes
1 parent 620a56b commit f588741

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/components/selections/select.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -809,8 +809,7 @@ function determineSearchTraces(gd, xAxes, yAxes, subplot) {
809809
var sankeyInfo = createSearchInfo(trace._module, cd, xAxes[0], yAxes[0]);
810810
searchTraces.push(sankeyInfo);
811811
} else {
812-
if(xAxisIds.indexOf(trace.xaxis) === -1) continue;
813-
if(yAxisIds.indexOf(trace.yaxis) === -1) continue;
812+
if(!trace.xaxis || !trace.yaxis) continue;
814813

815814
searchTraces.push(createSearchInfo(trace._module, cd,
816815
getFromId(gd, trace.xaxis), getFromId(gd, trace.yaxis)));

0 commit comments

Comments
 (0)