Skip to content

Commit

Permalink
add hidden attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
xerosanyam committed Aug 8, 2024
1 parent be31fdf commit cfa0d47
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/lib/components/Cards/Card.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
class="absolute -right-28 bottom-0 hidden h-full flex-col-reverse px-2 opacity-0 group-hover:opacity-100 sm:flex"
>
<form method="post" action="?/delete" use:enhance={customEnhance}>
<input type="hidden" name="cardId" value={card.id} />
<input type="hidden" hidden name="cardId" value={card.id} />
<button
class="flex items-center space-x-1 rounded-md border bg-gray-800 px-4 py-2 text-white disabled:pointer-events-none disabled:opacity-50"
disabled={modifyingCardId === card.id}
Expand Down
4 changes: 2 additions & 2 deletions src/routes/(protected)/record/NewCards.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@
</div>
<div class="flex justify-end px-2 sm:hidden">
<form method="post" action="?/delete" use:enhance={customEnhance}>
<input type="hidden" name="cardId" value={card.id} />
<input type="hidden" hidden name="cardId" value={card.id} />
<button
class="flex items-center space-x-1 rounded-md border px-4 py-2 text-gray-900 disabled:pointer-events-none disabled:opacity-50"
disabled={modifyingCardId === card.id}
Expand All @@ -96,7 +96,7 @@
class="absolute -right-28 bottom-0 hidden h-full flex-col-reverse px-2 opacity-0 group-hover:opacity-100 sm:flex"
>
<form method="post" action="?/delete" use:enhance={customEnhance}>
<input type="hidden" name="cardId" value={card.id} />
<input type="hidden" hidden name="cardId" value={card.id} />
<button
class="flex items-center space-x-1 rounded-md border bg-gray-800 px-4 py-2 text-white disabled:pointer-events-none disabled:opacity-50"
disabled={modifyingCardId === card.id}
Expand Down

0 comments on commit cfa0d47

Please sign in to comment.