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

Function focus

src/aria/combobox/combobox.spec.ts:52–55  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

50 };
51
52 const focus = async () => {
53 inputElement.dispatchEvent(new FocusEvent('focusin', {bubbles: true}));
54 await fixture.whenStable();
55 };
56
57 const blur = async (relatedTarget?: EventTarget) => {
58 inputElement.dispatchEvent(new FocusEvent('focusout', {bubbles: true, relatedTarget}));

Callers 4

keydownFunction · 0.70
inputFunction · 0.70
clickFunction · 0.70
combobox.spec.tsFile · 0.70

Calls 1

dispatchEventMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…