diff --git a/src/hooks/dialog/usealert.tsx b/src/hooks/dialog/usealert.tsx index b07d8e7..072a225 100644 --- a/src/hooks/dialog/usealert.tsx +++ b/src/hooks/dialog/usealert.tsx @@ -35,6 +35,7 @@ export const useAlert = () => { { children: labelConfirm, variant: "primary", + type: "submit", onClick: () => { setModalProps({ open: false }); onConfirm?.(); diff --git a/src/hooks/dialog/useconfirm.tsx b/src/hooks/dialog/useconfirm.tsx index e33e238..db30930 100644 --- a/src/hooks/dialog/useconfirm.tsx +++ b/src/hooks/dialog/useconfirm.tsx @@ -39,6 +39,7 @@ export const useConfirm = () => { { children: labelCancel, variant: "secondary", + type: "button", onClick: () => { setModalProps({ open: false }); onCancel?.(); @@ -47,6 +48,7 @@ export const useConfirm = () => { { children: labelConfirm, variant: "primary", + type: "submit", onClick: () => { setModalProps({ open: false }); onConfirm?.();