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.
Parameters
Section titled “Parameters”anchor?
Section titled “anchor?”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.
Returns
Section titled “Returns”boolean