Skip to content

Commit

Permalink
fix: ensure dom binding is not called after detatch
Browse files Browse the repository at this point in the history
Fixes #7814
  • Loading branch information
pmmmwh authored and OrKoN committed Feb 15, 2022
1 parent 6e6a00c commit 11ddda7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/common/DOMWorld.ts
Expand Up @@ -139,7 +139,7 @@ export class DOMWorld {
}

_hasContext(): boolean {
return !this._contextResolveCallback;
return !this._contextResolveCallback && !this._detached;
}

_detach(): void {
Expand Down

0 comments on commit 11ddda7

Please sign in to comment.