Skip to content

Commit ec4c8f3

Browse files
committed
Cover case for selections in multiple subplots
1 parent f588741 commit ec4c8f3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/components/selections/select.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -809,7 +809,8 @@ 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(!trace.xaxis || !trace.yaxis) continue;
812+
if(xAxisIds.indexOf(trace.xaxis) === -1 && !trace._xA) continue;
813+
if(yAxisIds.indexOf(trace.yaxis) === -1 && !trace._yA) continue;
813814

814815
searchTraces.push(createSearchInfo(trace._module, cd,
815816
getFromId(gd, trace.xaxis), getFromId(gd, trace.yaxis)));

0 commit comments

Comments
 (0)