From 7cca38c2452d2d3fbbb8cd1215bb33b9601f2ebc Mon Sep 17 00:00:00 2001 From: Miodec Date: Mon, 6 Mar 2023 12:58:08 +0100 Subject: [PATCH] not showing caret after resize if the input field is not focused --- frontend/src/ts/ui.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/frontend/src/ts/ui.ts b/frontend/src/ts/ui.ts index d7975a196..8abf9c5b4 100644 --- a/frontend/src/ts/ui.ts +++ b/frontend/src/ts/ui.ts @@ -100,7 +100,9 @@ const debouncedEvent = debounce(250, async () => { } } setTimeout(() => { - Caret.show(); + if ($("#wordsInput").is(":focus")) { + Caret.show(); + } }, 250); });