File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed
Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -123,6 +123,9 @@ codeInput.plugins.FindAndReplace = class extends codeInput.Plugin {
123123 // No matches - error
124124 dialog . findInput . classList . add ( 'code-input_find-and-replace_error' ) ;
125125 }
126+ } else {
127+ // Input box is empty - no error
128+ dialog . findInput . classList . remove ( 'code-input_find-and-replace_error' ) ;
126129 }
127130 this . updateMatchDescription ( dialog ) ;
128131 }
Original file line number Diff line number Diff line change @@ -81,8 +81,9 @@ codeInput.plugins.GoToLine = class extends codeInput.Plugin {
8181 }
8282 }
8383 } else {
84- // No value
84+ // No value, so no message or error
8585 dialog . guidance . textContent = "" ;
86+ dialog . input . classList . remove ( 'code-input_go-to-line_error' ) ;
8687 }
8788
8889 if ( event . key == 'Enter' ) {
You can’t perform that action at this time.
0 commit comments