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

Method _getAriaActiveDescendant

src/material/select/select.ts:1345–1351  ·  view source on GitHub ↗

Determines the `aria-activedescendant` to be set on the host.

()

Source from the content-addressed store, hash-verified

1343
1344 /** Determines the `aria-activedescendant` to be set on the host. */
1345 _getAriaActiveDescendant(): string | null {
1346 if (this.panelOpen && this._keyManager && this._keyManager.activeItem) {
1347 return this._keyManager.activeItem.id;
1348 }
1349
1350 return null;
1351 }
1352
1353 /** Gets the aria-labelledby of the select component trigger. */
1354 private _getTriggerAriaLabelledby(): string | null {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected