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:
parent
2b5484539d
commit
6f1d0a3caa
1 changed files with 1 additions and 3 deletions
|
@ -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">
|
||||
|
|
Loading…
Reference in a new issue