@overmap-ai/forms 1.0.32-react-flow-david-fixes.21 → 1.0.32-react-flow-david-fixes.22
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/forms.js +2 -2
- package/dist/forms.umd.cjs +2 -2
- package/package.json +1 -1
package/dist/forms.js
CHANGED
|
@@ -36268,8 +36268,8 @@ const FormRenderer = memo(
|
|
|
36268
36268
|
const { readonly } = schema.meta;
|
|
36269
36269
|
const formId2 = useId$1();
|
|
36270
36270
|
const initialValues = useMemo(() => {
|
|
36271
|
-
return initializeFieldValues(flattenFields(
|
|
36272
|
-
}, [
|
|
36271
|
+
return initializeFieldValues(flattenFields(schemaFromProps.fields), values);
|
|
36272
|
+
}, [schemaFromProps.fields, values]);
|
|
36273
36273
|
const handleSubmit = useCallback(
|
|
36274
36274
|
(values2) => {
|
|
36275
36275
|
onSubmit == null ? void 0 : onSubmit(
|
package/dist/forms.umd.cjs
CHANGED
|
@@ -36270,8 +36270,8 @@ For more information, see https://radix-ui.com/primitives/docs/components/${titl
|
|
|
36270
36270
|
const { readonly } = schema.meta;
|
|
36271
36271
|
const formId2 = React.useId();
|
|
36272
36272
|
const initialValues = React.useMemo(() => {
|
|
36273
|
-
return initializeFieldValues(flattenFields(
|
|
36274
|
-
}, [
|
|
36273
|
+
return initializeFieldValues(flattenFields(schemaFromProps.fields), values);
|
|
36274
|
+
}, [schemaFromProps.fields, values]);
|
|
36275
36275
|
const handleSubmit = React.useCallback(
|
|
36276
36276
|
(values2) => {
|
|
36277
36277
|
onSubmit == null ? void 0 : onSubmit(
|