From 6f1d0a3caab41bf660fa3f43abfe445c43fee505 Mon Sep 17 00:00:00 2001 From: Michel Heusschen <59014050+michelheusschen@users.noreply.github.com> Date: Wed, 5 Apr 2023 18:43:52 +0200 Subject: [PATCH] fix(web): remove search bar focus after searching (#2177) --- .../components/shared-components/search-bar/search-bar.svelte | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/web/src/lib/components/shared-components/search-bar/search-bar.svelte b/web/src/lib/components/shared-components/search-bar/search-bar.svelte index 615952a45c..70f553ea2f 100644 --- a/web/src/lib/components/shared-components/search-bar/search-bar.svelte +++ b/web/src/lib/components/shared-components/search-bar/search-bar.svelte @@ -4,7 +4,6 @@ import Close from 'svelte-material-icons/Close.svelte'; import { goto } from '$app/navigation'; import { savedSearchTerms } from '$lib/stores/search.store'; - import { clickOutside } from '$lib/utils/click-outside'; import { fly } from 'svelte/transition'; export let value = ''; export let grayTheme: boolean; @@ -58,8 +57,7 @@ on:reset={() => (value = '')} on:submit|preventDefault={() => onSearch(true)} on:focusin={() => (showBigSearchBar = true)} - use:clickOutside - on:outclick={() => (showBigSearchBar = false)} + on:focusout={() => (showBigSearchBar = false)} >