Skip to content

Commit 3150069

Browse files
committed
fix relayout removing zindexed subplots
1 parent d36364c commit 3150069

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/plots/cartesian/index.js

+4
Original file line numberDiff line numberDiff line change
@@ -372,6 +372,10 @@ exports.clean = function(newFullData, newFullLayout, oldFullData, oldFullLayout)
372372

373373
for(i = 0; i < oldSubplotList.cartesian.length; i++) {
374374
var oldSubplotId = oldSubplotList.cartesian[i];
375+
376+
// skip zindex layes in this process
377+
if(oldSubplotId.indexOf(zindexSeparator) !== -1) continue;
378+
375379
if(!newPlots[oldSubplotId]) {
376380
var selector = '.' + oldSubplotId + ',.' + oldSubplotId + '-x,.' + oldSubplotId + '-y';
377381
oldFullLayout._cartesianlayer.selectAll(selector).remove();

0 commit comments

Comments
 (0)