fix: tag input target in chrome

This commit is contained in:
sua yoo 2023-02-25 19:54:58 -08:00
parent 4901fc2fe9
commit de8a5f1c00
No known key found for this signature in database
GPG Key ID: 5AD1B4C02D4F0567

View File

@ -314,7 +314,7 @@ export class TagInput extends LitElement {
}
private onInput = debounce(200)(async (e: InputEvent) => {
const input = (e as any).originalTarget as HTMLInputElement;
const input = this.input!;
this.inputValue = input.value;
if (input.value.length) {
this.dropdownIsOpen = true;