From f3cb3f209cb9e7e728d3ad84c67bf46820706736 Mon Sep 17 00:00:00 2001 From: glax Date: Sat, 19 Oct 2024 21:02:00 +0200 Subject: [PATCH] Added ability to submit inputbox on search --- Website/modules/Search.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Website/modules/Search.tsx b/Website/modules/Search.tsx index f66b9b4..ac9fa3e 100644 --- a/Website/modules/Search.tsx +++ b/Website/modules/Search.tsx @@ -57,7 +57,7 @@ export default function Search({onJobsChanged, closeSearch} : {onJobsChanged: Ev } } - const ExecuteSearch : MouseEventHandler = (event) => { + const ExecuteSearch : EventHandler = (event) => { if(searchBoxValue.length < 1 || selectedConnector === undefined || selectedLanguage === ""){ console.error("Tried initiating search while not all fields where submitted.") return; @@ -90,7 +90,7 @@ export default function Search({onJobsChanged, closeSearch} : {onJobsChanged: Ev return (