Skip to content

A modern and easy to use dashboard. 80+ integrations. 20K+ icons built in. Authentication out of the box. No YAML, drag and drop configuration.

fix: confirm not selected by default in confirm modal (#1232)

Meier Lukasac0750452cd4
diff --git a/packages/modals/src/confirm-modal.tsx b/packages/modals/src/confirm-modal.tsx
index 41f11751d..752506cb8 100644
--- a/packages/modals/src/confirm-modal.tsx
+++ b/packages/modals/src/confirm-modal.tsx
@@ -85,7 +85,7 @@ export const ConfirmModal = createModal<Omit<ConfirmModalProps, "title">>(({ act
{cancelProps?.children ?? translateIfNecessary(t, cancelLabel)}
</Button>
- <Button {...confirmProps} onClick={handleConfirm} color="red.9" loading={loading}>
+ <Button data-autofocus {...confirmProps} onClick={handleConfirm} color="red.9" loading={loading}>
{confirmProps?.children ?? translateIfNecessary(t, confirmLabel)}
</Button>
</Group>