Skip to content

isFloatingMenuOpen

isFloatingMenuOpen(anchor?): boolean

Defined in: components/menu.ts:636

Whether a floating menu is currently open. Reflects live state (cleared the instant it closes), unlike the DOM — the panel lingers briefly while its destroy= transition plays out.

HTMLElement

When given, only reports true for a menu opened from this anchor — so a component can ask about its own menu rather than any menu.

boolean