aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorMiodec <[email protected]>2023-03-06 12:58:08 +0100
committerMiodec <[email protected]>2023-03-06 12:58:08 +0100
commit7cca38c2452d2d3fbbb8cd1215bb33b9601f2ebc (patch)
tree15e821229f80858ed71a9e2d1ee3d25197330253
parent1cf04ec696a330da7917c9d5343bb90a0c38b223 (diff)
downloadmonkeytype-7cca38c2452d2d3fbbb8cd1215bb33b9601f2ebc.tar.gz
monkeytype-7cca38c2452d2d3fbbb8cd1215bb33b9601f2ebc.zip
not showing caret after resize if the input field is not focused
-rw-r--r--frontend/src/ts/ui.ts4
1 files changed, 3 insertions, 1 deletions
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);
});