Skip to content

Commit

Permalink
chore: code review notes
Browse files Browse the repository at this point in the history
  • Loading branch information
Westbrook committed Mar 4, 2024
1 parent 34210ba commit 90f8e62
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions packages/overlay/src/Overlay.ts
Original file line number Diff line number Diff line change
Expand Up @@ -364,10 +364,7 @@ export class Overlay extends OverlayFeatures {
const ancestors: HTMLElement[] = [];
// eslint-disable-next-line @spectrum-web-components/document-active-element
let currentNode = document.activeElement;
while (
currentNode?.shadowRoot &&
currentNode.shadowRoot.activeElement
) {
while (currentNode?.shadowRoot?.activeElement) {
currentNode = currentNode.shadowRoot.activeElement;
}
while (currentNode) {
Expand Down

0 comments on commit 90f8e62

Please sign in to comment.