From cef7fd549a29e9aad7457468c81072c0b95b73be Mon Sep 17 00:00:00 2001 From: FleetAdmiralJakob Date: Sun, 14 Jan 2024 18:47:34 +0100 Subject: [PATCH] refactor: Improved the experience of the search input if the user confirms his input --- apps/web/src/pages/locationsettings/index.tsx | 1 + apps/web/src/pages/search/index.tsx | 1 + 2 files changed, 2 insertions(+) diff --git a/apps/web/src/pages/locationsettings/index.tsx b/apps/web/src/pages/locationsettings/index.tsx index 5c67bcc1..6f5b5610 100644 --- a/apps/web/src/pages/locationsettings/index.tsx +++ b/apps/web/src/pages/locationsettings/index.tsx @@ -81,6 +81,7 @@ const LocationSettings = observer(() => { }; const searchCity = () => { + inputRef.current?.blur(); let city: ICity | undefined = { id: 0, name: "", diff --git a/apps/web/src/pages/search/index.tsx b/apps/web/src/pages/search/index.tsx index 8480b512..fbad534f 100644 --- a/apps/web/src/pages/search/index.tsx +++ b/apps/web/src/pages/search/index.tsx @@ -76,6 +76,7 @@ const Search = () => { // Gets called if the user clicks on the "continue" button or press enter const searchCity = () => { + inputRef.current?.blur(); let city: ICity | undefined = { id: 0, name: "",