From f0d1f5905368418a62476d930b3d7012ac988e5e Mon Sep 17 00:00:00 2001 From: Michael Mok Date: Tue, 15 Feb 2022 05:14:03 +0100 Subject: [PATCH] fix: ensure dom binding is not called after detatch Fixes #7814 --- src/common/DOMWorld.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/DOMWorld.ts b/src/common/DOMWorld.ts index cfacc28734666..ba3690f72b7c3 100644 --- a/src/common/DOMWorld.ts +++ b/src/common/DOMWorld.ts @@ -139,7 +139,7 @@ export class DOMWorld { } _hasContext(): boolean { - return !this._contextResolveCallback; + return !this._contextResolveCallback && !this._detached; } _detach(): void {