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

Method _containsFocus

src/material/list/selection-list.ts:496–499  ·  view source on GitHub ↗

Returns whether the focus is currently within the list.

()

Source from the content-addressed store, hash-verified

494
495 /** Returns whether the focus is currently within the list. */
496 private _containsFocus() {
497 const activeElement = _getFocusedElementPierceShadowDom();
498 return activeElement && this._element.nativeElement.contains(activeElement);
499 }
500}

Callers 2

MatSelectionListClass · 0.95

Calls 1

Tested by

no test coverage detected