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

Method _getItem

src/aria/private/listbox/listbox.ts:294–301  ·  view source on GitHub ↗
(e: PointerEvent)

Source from the content-addressed store, hash-verified

292 }
293
294 protected _getItem(e: PointerEvent) {
295 if (!(e.target instanceof HTMLElement)) {
296 return;
297 }
298
299 const element = e.target.closest('[role="option"]');
300 return this.inputs.items().find(i => i.element() === element);
301 }
302}

Callers 1

ListboxPatternClass · 0.95

Calls 1

elementMethod · 0.45

Tested by

no test coverage detected