focus method

This commit is contained in:
Niels Lyngsø
2024-08-06 14:45:18 +02:00
parent 9a71981fd5
commit 8a683fc930

View File

@@ -50,6 +50,10 @@ export class UmbPropertyEditorUITextBoxElement
this.addFormControlElement(this.shadowRoot!.querySelector('uui-input')!);
}
override focus() {
return this.shadowRoot?.querySelector<UUIInputElement>('uui-input')?.focus();
}
#onInput(e: InputEvent) {
const newValue = (e.target as HTMLInputElement).value;
if (newValue === this.value) return;