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