Skip to content

closeFloatingMenu

closeFloatingMenu(anchor?): void

Defined in: components/menu.ts:646

Close the open floating menu (if any), returning focus to its anchor. With an anchor, only closes when the open menu belongs to it, so dismissing your own menu can’t steal someone else’s.

HTMLElement

void