fix(test): tab-navigating away from the test words doesnt fade in the ui

This commit is contained in:
Miodec 2024-07-03 12:26:45 +02:00
parent 03937c72cd
commit d6a3cd08ea

View file

@ -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);
}
}