@overmap-ai/forms 1.0.12-fix-dropdown-error.3 → 1.0.12-fix-form-problem.1

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
@@ -2007,8 +2007,10 @@ const FieldBuilder = memo(function FieldBuilder2(props) {
2007
2007
  const handleCancel = useCallback(() => {
2008
2008
  setFieldType(void 0);
2009
2009
  setFormIsDirty(false);
2010
+ console.log("handlecancelran");
2010
2011
  }, []);
2011
2012
  const handleCloseDialog = useCallback(() => {
2013
+ console.log("handlecloseran");
2012
2014
  if (!formIsDirty) {
2013
2015
  setFieldType(void 0);
2014
2016
  setIsOpen(false);
@@ -2153,7 +2155,7 @@ const FieldActions = memo(function FieldActions2(props) {
2153
2155
  DropdownItemMenu,
2154
2156
  {
2155
2157
  trigger: /* @__PURE__ */ jsx(IconButton, { variant: "ghost", "aria-label": "Actions menu", children: /* @__PURE__ */ jsx(DotsVerticalIcon, {}) }),
2156
- closeOnSelect: false,
2158
+ closeOnSelect: true,
2157
2159
  items: actions.map((Action) => {
2158
2160
  var _a;
2159
2161
  if (Action.disableOnMobile)