fix(typing): fully prevent input if a popup is visible

Closes #4641
This commit is contained in:
Miodec 2023-09-18 14:08:21 +01:00
parent 304ca9a29d
commit ec7ce68178

View file

@ -1121,7 +1121,10 @@ $("#wordsInput").on("input", (event) => {
}
const popupVisible = Misc.isAnyPopupVisible();
if (popupVisible) return;
if (popupVisible) {
event.preventDefault();
return;
}
TestInput.setCurrentNotAfk();