Skip to content

Commit

Permalink
fix(typing): fully prevent input if a popup is visible
Browse files Browse the repository at this point in the history
Closes #4641
  • Loading branch information
Miodec committed Sep 18, 2023
1 parent 304ca9a commit ec7ce68
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion frontend/src/ts/controllers/input-controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1121,7 +1121,10 @@ $("#wordsInput").on("input", (event) => {
}

const popupVisible = Misc.isAnyPopupVisible();
if (popupVisible) return;
if (popupVisible) {
event.preventDefault();
return;
}

TestInput.setCurrentNotAfk();

Expand Down

0 comments on commit ec7ce68

Please sign in to comment.