We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 877e596 commit 996a0e9Copy full SHA for 996a0e9
2 files changed
plugins/find-and-replace.js
@@ -123,6 +123,9 @@ codeInput.plugins.FindAndReplace = class extends codeInput.Plugin {
123
// No matches - error
124
dialog.findInput.classList.add('code-input_find-and-replace_error');
125
}
126
+ } else {
127
+ // Input box is empty - no error
128
+ dialog.findInput.classList.remove('code-input_find-and-replace_error');
129
130
this.updateMatchDescription(dialog);
131
plugins/go-to-line.js
@@ -81,8 +81,9 @@ codeInput.plugins.GoToLine = class extends codeInput.Plugin {
81
82
83
} else {
84
- // No value
+ // No value, so no message or error
85
dialog.guidance.textContent = "";
86
+ dialog.input.classList.remove('code-input_go-to-line_error');
87
88
89
if (event.key == 'Enter') {
0 commit comments