Dont allow empty search

This commit is contained in:
WardPearce
2024-05-13 14:19:12 +12:00
parent ee5a245315
commit 96a1b64a4d
+2
View File
@@ -32,6 +32,8 @@
}
function handleSubmit() {
if (search.trim() === '') return;
selectedSuggestionIndex = -1;
goto(`/search/${encodeURIComponent(search)}`);
dispatch('searchSubmitted');