We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7a2ba32 commit 0ce9e76Copy full SHA for 0ce9e76
1 file changed
src/core/View.js
@@ -406,8 +406,16 @@ export default class View extends Component {
406
407
this.selector.delete();
408
this.orientationWidget.delete();
409
- this.defaultStyle.delete();
410
+ if (
411
+ this.interactor.getInteractorStyle() === this.style ||
412
+ this.interactor.getInteractorStyle() === this.defaultStyle
413
+ ) {
414
+ this.interactor.setInteractorStyle(null);
415
+ }
416
+
417
+ this.style.delete();
418
+ this.defaultStyle.delete();
419
this.defaultStyle = null;
420
this.style = null;
421
this.renderer = null;
0 commit comments