Do not allow search if query is empty

This commit is contained in:
Jan Böhmer 2024-02-29 22:48:07 +01:00
parent 1815162907
commit 0dea26f67d

View file

@ -107,6 +107,11 @@ export default class extends Controller {
return;
}
//Do not submit the form, if the input is empty
if (state.query === "") {
return;
}
input.value = state.query;
input.form.requestSubmit();
},