diff --git a/packages/overlay/src/Overlay.ts b/packages/overlay/src/Overlay.ts index fe40bf4528..4a76ee32e5 100644 --- a/packages/overlay/src/Overlay.ts +++ b/packages/overlay/src/Overlay.ts @@ -393,6 +393,7 @@ export class Overlay extends OverlayFeatures { return ancestors; }; if ( + this.receivesFocus !== 'false' && (this.triggerElement as HTMLElement)?.focus && (this.contains((this.getRootNode() as Document).activeElement) || getAncestors().includes(this) ||