mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-02-01 11:29:49 +08:00
fix(test): tab-navigating away from the test words doesnt fade in the ui
This commit is contained in:
parent
03937c72cd
commit
d6a3cd08ea
1 changed files with 5 additions and 3 deletions
|
@ -862,9 +862,11 @@ function handleTab(event: JQuery.KeyDownEvent, popupVisible: boolean): void {
|
|||
return;
|
||||
}
|
||||
|
||||
if (document.activeElement?.id !== "wordsInput") {
|
||||
Focus.set(false);
|
||||
}
|
||||
setTimeout(() => {
|
||||
if (document.activeElement?.id !== "wordsInput") {
|
||||
Focus.set(false);
|
||||
}
|
||||
}, 0);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue