Handles input events for the combobox.
(event: Event)
| 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() { |
no test coverage detected