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

Function click

src/aria/menu/menu.spec.ts:47–50  ·  view source on GitHub ↗
(element: Element, eventInit?: PointerEventInit)

Source from the content-addressed store, hash-verified

45 };
46
47 const click = async (element: Element, eventInit?: PointerEventInit) => {
48 element.dispatchEvent(new PointerEvent('click', {bubbles: true, ...eventInit}));
49 await fixture.whenStable();
50 };
51
52 const focusout = async (element: Element, relatedTarget?: EventTarget) => {
53 element.dispatchEvent(new FocusEvent('focusout', {bubbles: true, relatedTarget}));

Callers 1

menu.spec.tsFile · 0.70

Calls 3

waitForMicrotasksFunction · 0.90
focusinFunction · 0.85
dispatchEventMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…