mirror of
https://github.com/samsonjs/immich.git
synced 2026-04-27 15:07:45 +00:00
fix: search input has incorrect focus state after closing the search filter modal (#24886)
This commit is contained in:
parent
8e8a2f997e
commit
18d8cc4449
1 changed files with 14 additions and 12 deletions
|
|
@ -111,6 +111,7 @@
|
||||||
if (close) {
|
if (close) {
|
||||||
await close();
|
await close();
|
||||||
close = undefined;
|
close = undefined;
|
||||||
|
searchStore.isSearchEnabled = false;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -120,6 +121,7 @@
|
||||||
|
|
||||||
const searchResult = await result.onClose;
|
const searchResult = await result.onClose;
|
||||||
close = undefined;
|
close = undefined;
|
||||||
|
searchStore.isSearchEnabled = false;
|
||||||
|
|
||||||
// Refresh search type after modal closes
|
// Refresh search type after modal closes
|
||||||
getSearchType();
|
getSearchType();
|
||||||
|
|
@ -346,18 +348,6 @@
|
||||||
</div>
|
</div>
|
||||||
{/if}
|
{/if}
|
||||||
|
|
||||||
<div class="absolute inset-y-0 {showClearIcon ? 'end-14' : 'end-2'} flex items-center ps-6 transition-all">
|
|
||||||
<IconButton
|
|
||||||
aria-label={$t('show_search_options')}
|
|
||||||
shape="round"
|
|
||||||
icon={mdiTune}
|
|
||||||
onclick={onFilterClick}
|
|
||||||
size="medium"
|
|
||||||
color="secondary"
|
|
||||||
variant="ghost"
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
{#if showClearIcon}
|
{#if showClearIcon}
|
||||||
<div class="absolute inset-y-0 end-0 flex items-center pe-2">
|
<div class="absolute inset-y-0 end-0 flex items-center pe-2">
|
||||||
<IconButton
|
<IconButton
|
||||||
|
|
@ -384,4 +374,16 @@
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
|
<div class="absolute inset-y-0 {showClearIcon ? 'end-14' : 'end-2'} flex items-center ps-6 transition-all">
|
||||||
|
<IconButton
|
||||||
|
aria-label={$t('show_search_options')}
|
||||||
|
shape="round"
|
||||||
|
icon={mdiTune}
|
||||||
|
onclick={onFilterClick}
|
||||||
|
size="medium"
|
||||||
|
color="secondary"
|
||||||
|
variant="ghost"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue