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

Function focusin

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

Source from the content-addressed store, hash-verified

692 let fixture: ComponentFixture<MenuTriggerExample>;
693
694 const focusin = async (element: Element) => {
695 element.dispatchEvent(new FocusEvent('focusin', {bubbles: true}));
696 await fixture.whenStable();
697 };
698
699 const keydown = async (element: Element, key: string, modifierKeys: {} = {}) => {
700 await focusin(element);

Callers 3

keydownFunction · 0.85
clickFunction · 0.85
menu.spec.tsFile · 0.85

Calls 1

dispatchEventMethod · 0.65

Tested by

no test coverage detected