1
0
mirror of https://github.com/immich-app/immich.git synced 2025-06-26 05:01:05 +02:00

fix(web): require button type (#9786)

This commit is contained in:
Michel Heusschen
2024-05-27 09:06:15 +02:00
committed by GitHub
parent fc5615eff6
commit 38f4a02a14
41 changed files with 113 additions and 59 deletions

View File

@ -93,6 +93,7 @@
{@const renderedOption = renderOption(option)}
{@const buttonStyle = renderedOption.disabled ? '' : 'transition-all hover:bg-gray-300 dark:hover:bg-gray-800'}
<button
type="button"
class="grid grid-cols-[36px,1fr] place-items-center p-2 disabled:opacity-40 {buttonStyle}"
disabled={renderedOption.disabled}
on:click={() => !renderedOption.disabled && handleSelectOption(option)}