MCPcopy Index your code
hub / github.com/angular/components / pendingFocusEffect

Method pendingFocusEffect

src/aria/private/menu/menu.ts:679–690  ·  view source on GitHub ↗

Flushes any pending focus when the menu instance becomes available.

()

Source from the content-addressed store, hash-verified

677
678 /** Flushes any pending focus when the menu instance becomes available. */
679 pendingFocusEffect(): void {
680 const menu = this.inputs.menu();
681 const intent = this.pendingFocus();
682 if (menu && intent) {
683 if (intent === 'first') {
684 menu.first();
685 } else if (intent === 'last') {
686 menu.last();
687 }
688 this.pendingFocus.set(undefined);
689 }
690 }
691
692 /** Handles keyboard events for the menu trigger. */
693 onKeydown(event: KeyboardEvent) {

Callers 2

getMenuTriggerPatternFunction · 0.95
constructorMethod · 0.80

Calls 4

setMethod · 0.80
menuMethod · 0.45
firstMethod · 0.45
lastMethod · 0.45

Tested by 1

getMenuTriggerPatternFunction · 0.76