Skip to content

Open-source manufacturing ERP, MES and QMS. Quoting, MRP, inventory, shop floor, quality and lot/serial traceability on one Postgres schema, with a REST API and MCP server. Self-host or use Carbon Cloud.

Merge remote-tracking branch 'origin/main' into feat/keyboard-shortcuts

aashu7abebb37855d
diff --cc apps/erp/app/components/Modals/ConfirmDelete/ConfirmDelete.tsx
index 91c9af7864,d9009bf757..7e05891fc0
--- a/apps/erp/app/components/Modals/ConfirmDelete/ConfirmDelete.tsx
+++ b/apps/erp/app/components/Modals/ConfirmDelete/ConfirmDelete.tsx
@@@ -67,11 -76,17 +77,22 @@@ const ConfirmDelete = (
action={action}
onSubmit={() => (submitted.current = true)}
>
+ {/* Drawer and Modal are both z-50 (Drawer.tsx:23, Modal.tsx:35), so
+ when this modal stacks over a drawer form the topmost-dialog
+ guard resolves by "later-mounted wins" (utils/dialog.ts). If
+ either z-index ever changes, re-verify ⌘Enter targets this
+ modal, not the drawer's Submit. */}
+ {fields &&
+ Object.entries(fields).flatMap(([key, value]) =>
+ (Array.isArray(value) ? value : [value]).map((v, i) => (
+ <input
+ key={`${key}-${i}`}
+ type="hidden"
+ name={key}
+ value={v}
+ />
+ ))
+ )}
<Button
variant="destructive"
isLoading={fetcher.state !== "idle"}