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

Method onMouseOver

src/aria/private/menu/menu.ts:570–576  ·  view source on GitHub ↗

Handles mouseover events for the menu bar.

(event: MouseEvent)

Source from the content-addressed store, hash-verified

568
569 /** Handles mouseover events for the menu bar. */
570 onMouseOver(event: MouseEvent) {
571 const item = this.inputs.items().find(i => i.element()?.contains(_getEventTarget(event)));
572
573 if (item) {
574 this.goto(item, {focusElement: this.isFocused()});
575 }
576 }
577
578 /** Handles focusin events for the menu bar. */
579 onFocusIn() {

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