@overmap-ai/forms 1.0.12-fix-dropdown-error.0 → 1.0.12-fix-dropdown-error.2
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 +5 -8
- package/dist/forms.js.map +1 -1
- package/dist/forms.umd.cjs +5 -8
- package/dist/forms.umd.cjs.map +1 -1
- package/package.json +1 -1
package/dist/forms.umd.cjs
CHANGED
|
@@ -2042,13 +2042,15 @@ var __publicField = (obj, key, value) => {
|
|
|
2042
2042
|
newFields = insert(parent, index, field);
|
|
2043
2043
|
}
|
|
2044
2044
|
setFieldValue(parentPath, newFields).then();
|
|
2045
|
-
|
|
2045
|
+
setIsOpen(false);
|
|
2046
|
+
console.log(closeDialog);
|
|
2046
2047
|
},
|
|
2047
|
-
[
|
|
2048
|
+
[type, values, parentPath, editing, setFieldValue, setIsOpen, index]
|
|
2048
2049
|
);
|
|
2049
2050
|
const handleDirtyChange = React.useCallback((dirty) => setFormIsDirty(dirty), []);
|
|
2050
2051
|
const dialogContent = React.useCallback(
|
|
2051
2052
|
(closeDialog) => {
|
|
2053
|
+
console.log(showChooseField, type, editing, initial);
|
|
2052
2054
|
if (showChooseField) {
|
|
2053
2055
|
return /* @__PURE__ */ jsxRuntime.jsx(ChooseFieldToAdd, { setFieldType });
|
|
2054
2056
|
}
|
|
@@ -2150,12 +2152,7 @@ var __publicField = (obj, key, value) => {
|
|
|
2150
2152
|
/* @__PURE__ */ jsxRuntime.jsx(Action.Icon, {}),
|
|
2151
2153
|
Action.text
|
|
2152
2154
|
] }),
|
|
2153
|
-
Action.SelectedContent && /* @__PURE__ */ jsxRuntime.jsx(
|
|
2154
|
-
Action.SelectedContent,
|
|
2155
|
-
{
|
|
2156
|
-
...Action.selectedContentProps
|
|
2157
|
-
}
|
|
2158
|
-
)
|
|
2155
|
+
Action.SelectedContent && /* @__PURE__ */ jsxRuntime.jsx(Action.SelectedContent, { ...Action.selectedContentProps })
|
|
2159
2156
|
] }, Action.text)
|
|
2160
2157
|
};
|
|
2161
2158
|
}).filter((x) => x !== null)
|