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

Method setInactiveStyles

src/material/core/option/option.ts:217–222  ·  view source on GitHub ↗

* This method removes display styles on the option that made it appear * active. This is used by the ActiveDescendantKeyManager so key * events will display the proper options as active on arrow key events.

()

Source from the content-addressed store, hash-verified

215 * events will display the proper options as active on arrow key events.
216 */
217 setInactiveStyles(): void {
218 if (this._active) {
219 this._active = false;
220 this._changeDetectorRef.markForCheck();
221 }
222 }
223
224 /** Gets the label to be used when determining whether the option should be focused. */
225 getLabel(): string {

Callers

nothing calls this directly

Calls 1

markForCheckMethod · 0.80

Tested by

no test coverage detected