Skip to content

Commit

Permalink
fix: cancel button getting read as form submit in key deletion dialog
Browse files Browse the repository at this point in the history
  • Loading branch information
ytkimirti committed Nov 15, 2024
1 parent 124c68d commit 8c8767a
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,9 @@ export function DeleteAlertDialog({
</AlertDialogDescription>
</AlertDialogHeader>
<AlertDialogFooter>
<AlertDialogCancel>Cancel</AlertDialogCancel>
<AlertDialogCancel type="button" onClick={(e) => e.stopPropagation()}>
Cancel
</AlertDialogCancel>
<AlertDialogAction
className="bg-red-500 text-gray-50 hover:bg-red-600"
onClick={onDeleteConfirm}
Expand Down

0 comments on commit 8c8767a

Please sign in to comment.