MCPcopy Create free account
hub / github.com/angular/components / close

Method close

src/aria/private/menu/menu.ts:658–660  ·  view source on GitHub ↗

Closes the menubar and refocuses the root menu bar item.

()

Source from the content-addressed store, hash-verified

656
657 /** Closes the menubar and refocuses the root menu bar item. */
658 close() {
659 this.inputs.activeItem()?.close({refocus: this.isFocused()});
660 }
661}
662
663/** The menu trigger ui pattern class. */

Callers 1

onFocusOutMethod · 0.95

Calls 3

activeItemMethod · 0.80
isFocusedMethod · 0.65
closeMethod · 0.45

Tested by

no test coverage detected