MCPcopy
hub / github.com/angular/components / focusin

Function focusin

src/aria/menu/menu.spec.ts:600–603  ·  view source on GitHub ↗
(element: Element)

Source from the content-addressed store, hash-verified

598 let fixture: ComponentFixture<MenuTriggerExample>;
599
600 const focusin = async (element: Element) => {
601 element.dispatchEvent(new FocusEvent('focusin', {bubbles: true}));
602 await fixture.whenStable();
603 };
604
605 const keydown = async (element: Element, key: string, modifierKeys: {} = {}) => {
606 await focusin(element);

Callers 2

keydownFunction · 0.85
clickFunction · 0.85

Calls 1

dispatchEventMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…