not showing caret after resize if the input field is not focused

This commit is contained in:
Miodec 2023-03-06 12:58:08 +01:00
parent 1cf04ec696
commit 7cca38c245

View file

@ -100,7 +100,9 @@ const debouncedEvent = debounce(250, async () => {
}
}
setTimeout(() => {
Caret.show();
if ($("#wordsInput").is(":focus")) {
Caret.show();
}
}, 250);
});