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

Method constructor

src/material/autocomplete/autocomplete.ts:247–259  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

245 readonly inertGroups: boolean;
246
247 constructor() {
248 const platform = inject(Platform);
249
250 // TODO(crisbeto): the problem that the `inertGroups` option resolves is only present on
251 // Safari using VoiceOver. We should occasionally check back to see whether the bug
252 // wasn't resolved in VoiceOver, and if it has, we can remove this and the `inertGroups`
253 // option altogether.
254 this.inertGroups = platform?.SAFARI || false;
255 this.autoActiveFirstOption = !!this._defaults.autoActiveFirstOption;
256 this.autoSelectActiveOption = !!this._defaults.autoSelectActiveOption;
257 this.requireSelection = !!this._defaults.requireSelection;
258 this._hideSingleSelectionIndicator = this._defaults.hideSingleSelectionIndicator ?? false;
259 }
260
261 ngAfterContentInit() {
262 this._keyManager = new ActiveDescendantKeyManager<MatOption>(this.options)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected