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

Method onInput

src/aria/private/combobox/combobox.ts:238–245  ·  view source on GitHub ↗

Handles input events for the combobox.

(event: Event)

Source from the content-addressed store, hash-verified

236
237 /** Handles input events for the combobox. */
238 onInput(event: Event) {
239 const target = _getEventTarget(event);
240 if (!(target instanceof HTMLInputElement) || this.disabled() || this.readonly()) return;
241
242 this.inputs.expanded.set(true);
243 this.value.set(target.value);
244 this.isDeleting.set(event instanceof InputEvent && !!event.inputType.match(/^delete/));
245 }
246
247 /** Highlights the currently selected item in the combobox. */
248 highlightEffect() {

Callers 1

combobox.spec.tsFile · 0.45

Calls 4

_getEventTargetFunction · 0.90
readonlyMethod · 0.80
setMethod · 0.80
disabledMethod · 0.45

Tested by

no test coverage detected