MCPcopy
hub / github.com/angular/components / onInput

Method onInput

src/aria/private/combobox/combobox.ts:201–208  ·  view source on GitHub ↗

Handles input events for the combobox.

(event: Event)

Source from the content-addressed store, hash-verified

199
200 /** Handles input events for the combobox. */
201 onInput(event: Event) {
202 if (!(event.target instanceof HTMLInputElement)) return;
203 if (this.disabled()) return;
204
205 this.inputs.expanded.set(true);
206 this.value.set(event.target.value);
207 this.isDeleting.set(event instanceof InputEvent && !!event.inputType.match(/^delete/));
208 }
209
210 /** Highlights the currently selected item in the combobox. */
211 highlightEffect() {

Callers 1

combobox.spec.tsFile · 0.45

Calls 2

setMethod · 0.80
disabledMethod · 0.45

Tested by

no test coverage detected