mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-20 17:15:51 +02:00
Do not allow search if query is empty
This commit is contained in:
parent
1815162907
commit
0dea26f67d
1 changed files with 5 additions and 0 deletions
|
@ -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();
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue