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

Method onMouseOver

src/aria/private/menu/menu.ts:586–592  ·  view source on GitHub ↗

Handles mouseover events for the menu bar.

(event: MouseEvent)

Source from the content-addressed store, hash-verified

584
585 /** Handles mouseover events for the menu bar. */
586 onMouseOver(event: MouseEvent) {
587 const item = this.inputs.items().find(i => i.element()?.contains(_getEventTarget(event)));
588
589 if (item) {
590 this.goto(item, {focusElement: this.isFocused()});
591 }
592 }
593
594 /** Handles focusin events for the menu bar. */
595 onFocusIn(event?: FocusEvent) {

Callers

nothing calls this directly

Calls 4

gotoMethod · 0.95
_getEventTargetFunction · 0.90
isFocusedMethod · 0.65
elementMethod · 0.45

Tested by

no test coverage detected