@motor-hero/ui-kit 0.37.2 → 0.37.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js
CHANGED
|
@@ -1464,11 +1464,15 @@ function FormDialogLayout({
|
|
|
1464
1464
|
] });
|
|
1465
1465
|
}
|
|
1466
1466
|
function FormDialog({ onSubmit, ...rest }) {
|
|
1467
|
+
const handleSubmit = (e) => {
|
|
1468
|
+
e.stopPropagation();
|
|
1469
|
+
onSubmit?.(e);
|
|
1470
|
+
};
|
|
1467
1471
|
return /* @__PURE__ */ jsx15(
|
|
1468
1472
|
BaseDialog,
|
|
1469
1473
|
{
|
|
1470
1474
|
...rest,
|
|
1471
|
-
contentWrapper: onSubmit ? (content) => /* @__PURE__ */ jsx15("form", { onSubmit, className: "flex min-h-0 flex-1 flex-col", children: content }) : void 0
|
|
1475
|
+
contentWrapper: onSubmit ? (content) => /* @__PURE__ */ jsx15("form", { onSubmit: handleSubmit, className: "flex min-h-0 flex-1 flex-col", children: content }) : void 0
|
|
1472
1476
|
}
|
|
1473
1477
|
);
|
|
1474
1478
|
}
|