@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 CHANGED
@@ -2049,13 +2049,15 @@ const FieldBuilder = memo(function FieldBuilder2(props) {
2049
2049
  newFields = insert(parent, index, field);
2050
2050
  }
2051
2051
  setFieldValue(parentPath, newFields).then();
2052
- closeDialog({ force: true });
2052
+ setIsOpen(false);
2053
+ console.log(closeDialog);
2053
2054
  },
2054
- [editing, type, values, parentPath, setFieldValue, index]
2055
+ [type, values, parentPath, editing, setFieldValue, setIsOpen, index]
2055
2056
  );
2056
2057
  const handleDirtyChange = useCallback((dirty) => setFormIsDirty(dirty), []);
2057
2058
  const dialogContent = useCallback(
2058
2059
  (closeDialog) => {
2060
+ console.log(showChooseField, type, editing, initial);
2059
2061
  if (showChooseField) {
2060
2062
  return /* @__PURE__ */ jsx(ChooseFieldToAdd, { setFieldType });
2061
2063
  }
@@ -2157,12 +2159,7 @@ const FieldActions = memo(function FieldActions2(props) {
2157
2159
  /* @__PURE__ */ jsx(Action.Icon, {}),
2158
2160
  Action.text
2159
2161
  ] }),
2160
- Action.SelectedContent && /* @__PURE__ */ jsx(
2161
- Action.SelectedContent,
2162
- {
2163
- ...Action.selectedContentProps
2164
- }
2165
- )
2162
+ Action.SelectedContent && /* @__PURE__ */ jsx(Action.SelectedContent, { ...Action.selectedContentProps })
2166
2163
  ] }, Action.text)
2167
2164
  };
2168
2165
  }).filter((x) => x !== null)