From ac877e2dcc40ddd710a57f6d7940d810a07436eb Mon Sep 17 00:00:00 2001 From: Dermot Duffy Date: Sat, 25 Dec 2021 16:48:11 -0800 Subject: [PATCH] Use @change rather than @value-change to keep text focus. --- src/components/live.ts | 1 - src/editor.ts | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/components/live.ts b/src/components/live.ts index 67764a48..8d5c5e46 100644 --- a/src/components/live.ts +++ b/src/components/live.ts @@ -1,4 +1,3 @@ -// TODO editor: fill in a new camera and keep focus // TODO editor: fill in a new camera then backspace it away // TODO editor: render correctly when name title is really long // TODO editor: should not be able to move up a new camera before it's not new. diff --git a/src/editor.ts b/src/editor.ts index f4ecb527..4ae8fc67 100644 --- a/src/editor.ts +++ b/src/editor.ts @@ -418,7 +418,7 @@ export class FrigateCardEditor extends LitElement implements LovelaceCardEditor .configValue=${configPath} allowed-pattern=${ifDefined(allowedPattern ? allowedPattern : undefined)} prevent-invalid-input=${ifDefined(allowedPattern)} - @value-changed=${this._valueChangedHandler} + @change=${this._valueChangedHandler} >`; }