We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 02c48fc commit 25dada5Copy full SHA for 25dada5
frontend/src/ts/commandline/commandline.ts
@@ -130,9 +130,13 @@ function hide(clearModalChain = false): void {
130
clearModalChain,
131
afterAnimation: async () => {
132
addCommandlineBackground();
133
- const isWordsFocused = $("#wordsInput").is(":focus");
134
- if (ActivePage.get() === "test" && !isWordsFocused) {
135
- focusWords();
+ if (ActivePage.get() === "test") {
+ const isWordsFocused = $("#wordsInput").is(":focus");
+ if (ActivePage.get() === "test" && !isWordsFocused) {
136
+ focusWords();
137
+ }
138
+ } else {
139
+ (document.activeElement as HTMLElement | undefined)?.blur();
140
}
141
isAnimating = false;
142
},
0 commit comments