Skip to content

Commit 8f9e370

Browse files
committed
make sure to clear 3d annotations when parent scene gets removed
1 parent 7cfba36 commit 8f9e370

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/plots/gl3d/index.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,12 @@ exports.clean = function(newFullData, newFullLayout, oldFullData, oldFullLayout)
7373

7474
if(!newFullLayout[oldSceneKey] && !!oldFullLayout[oldSceneKey]._scene) {
7575
oldFullLayout[oldSceneKey]._scene.destroy();
76+
77+
if(oldFullLayout._infolayer) {
78+
oldFullLayout._infolayer
79+
.selectAll('.annotation-' + oldSceneKey)
80+
.remove();
81+
}
7682
}
7783
}
7884
};

0 commit comments

Comments
 (0)