From 4b202d1494413c0ce993eba3ac511845cab03269 Mon Sep 17 00:00:00 2001 From: FleetAdmiralJakob Date: Sat, 6 Jan 2024 02:32:52 +0100 Subject: [PATCH] fix(frontend): Fixed a bug where you weren't able to use the autocomplete feature --- apps/web/src/pages/locationsettings/index.tsx | 2 +- apps/web/src/pages/search/index.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/web/src/pages/locationsettings/index.tsx b/apps/web/src/pages/locationsettings/index.tsx index 9c5a14d4..1cf23491 100644 --- a/apps/web/src/pages/locationsettings/index.tsx +++ b/apps/web/src/pages/locationsettings/index.tsx @@ -198,7 +198,7 @@ const LocationSettings = observer(() => { }} value={searchValue.name} onBlur={async () => { - await new Promise((resolve) => setTimeout(resolve, 80)); + await new Promise((resolve) => setTimeout(resolve, 100)); setIsInputActive(false); }} onChange={(event) => { diff --git a/apps/web/src/pages/search/index.tsx b/apps/web/src/pages/search/index.tsx index 37fc2486..21539f65 100644 --- a/apps/web/src/pages/search/index.tsx +++ b/apps/web/src/pages/search/index.tsx @@ -188,7 +188,7 @@ const Search = () => { }} value={searchValue.name} onBlur={async () => { - await new Promise((resolve) => setTimeout(resolve, 80)); + await new Promise((resolve) => setTimeout(resolve, 100)); setIsInputActive(false); }} onChange={(event) => {