0
Fork 0
mirror of https://github.com/immich-app/immich.git synced 2025-01-07 00:50:23 -05:00

fix(web): remove search bar focus after searching (#2177)

This commit is contained in:
Michel Heusschen 2023-04-05 18:43:52 +02:00 committed by GitHub
parent 2b5484539d
commit 6f1d0a3caa
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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)}
>
<label>
<div class="absolute inset-y-0 left-0 flex items-center pl-6">