Skip to content

Commit

Permalink
fix(overlay): stop the tab trapping if shadow root is not found
Browse files Browse the repository at this point in the history
  • Loading branch information
deepthi-majji authored and Westbrook committed May 16, 2023
1 parent 80b9894 commit 4f0ec46
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/overlay/src/overlay-stack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,9 @@ export class OverlayStack {
return;
}
this.document.body.attachShadow({ mode: 'open' });
/* c8 ignore next 3 */
/* c8 ignore next 4 */
if (!this.document.body.shadowRoot) {
this.trappingInited = false;
return;
}
const root = this.document.body.shadowRoot as ShadowRoot;
Expand Down

0 comments on commit 4f0ec46

Please sign in to comment.