Dont allow empty search
This commit is contained in:
@@ -32,6 +32,8 @@
|
||||
}
|
||||
|
||||
function handleSubmit() {
|
||||
if (search.trim() === '') return;
|
||||
|
||||
selectedSuggestionIndex = -1;
|
||||
goto(`/search/${encodeURIComponent(search)}`);
|
||||
dispatch('searchSubmitted');
|
||||
|
||||
Reference in New Issue
Block a user