From 035d38441194ac888256e657ee51fa8d85ef223c Mon Sep 17 00:00:00 2001 From: glax Date: Sun, 20 Oct 2024 00:05:13 +0200 Subject: [PATCH] Fix search not working on enter --- Website/modules/Search.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Website/modules/Search.tsx b/Website/modules/Search.tsx index b199425..2932f47 100644 --- a/Website/modules/Search.tsx +++ b/Website/modules/Search.tsx @@ -55,8 +55,7 @@ export default function Search({onJobsChanged, closeSearch} : {onJobsChanged: Ev } } - const ExecuteSearch : EventHandler = (event) => { - event.preventDefault(); + const ExecuteSearch : EventHandler = () => { if(searchBoxValue.length < 1 || selectedConnector === undefined || selectedLanguage === ""){ console.error("Tried initiating search while not all fields where submitted.") return;