1
0
Fork 0
mirror of https://github.com/immich-app/immich.git synced 2025-01-16 16:56:46 +01:00

fix(web): search filter form events (#7285)

This commit is contained in:
Michel Heusschen 2024-02-21 14:21:43 +01:00 committed by GitHub
parent a771f33fa3
commit e7995014f9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -324,7 +324,13 @@
<p class="text-xs py-2">FILTERS</p>
<hr class="border-slate-300 dark:border-slate-700 py-2" />
<form id="search-filter-form relative" autocomplete="off" class="hover:cursor-auto">
<form
id="search-filter-form relative"
autocomplete="off"
class="hover:cursor-auto"
on:submit|preventDefault={search}
on:reset|preventDefault={resetForm}
>
<!-- PEOPLE -->
<div id="people-selection" class="my-4">
<div class="flex justify-between place-items-center gap-6">
@ -566,8 +572,8 @@
id="button-row"
class="flex justify-end gap-4 py-4 sticky bottom-0 dark:border-gray-800 dark:bg-immich-dark-gray"
>
<Button color="gray" on:click={resetForm}>CLEAR ALL</Button>
<Button type="button" on:click={search}>SEARCH</Button>
<Button type="reset" color="gray">CLEAR ALL</Button>
<Button type="submit">SEARCH</Button>
</div>
</form>
</div>