We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 5182206 + 0ce9e76 commit 833d192Copy full SHA for 833d192
1 file changed
src/core/View.js
@@ -419,8 +419,16 @@ export default class View extends Component {
419
420
this.selector.delete();
421
this.orientationWidget.delete();
422
- this.defaultStyle.delete();
423
+ if (
424
+ this.interactor.getInteractorStyle() === this.style ||
425
+ this.interactor.getInteractorStyle() === this.defaultStyle
426
+ ) {
427
+ this.interactor.setInteractorStyle(null);
428
+ }
429
+
430
+ this.style.delete();
431
+ this.defaultStyle.delete();
432
this.defaultStyle = null;
433
this.style = null;
434
this.renderer = null;
0 commit comments