Skip to content

Commit

Permalink
fix(web): search filter form events (#7285)
Browse files Browse the repository at this point in the history
  • Loading branch information
michelheusschen committed Feb 21, 2024
1 parent a771f33 commit e799501
Showing 1 changed file with 9 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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">
Expand Down Expand Up @@ -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>

0 comments on commit e799501

Please sign in to comment.