@overmap-ai/forms 1.0.11-fix-dropdown-buttons.1 → 1.0.11-fix-dropdown-buttons.3

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
@@ -2132,15 +2132,14 @@ const FieldActions = memo(function FieldActions2(props) {
2132
2132
  trigger: /* @__PURE__ */ jsx(IconButton, { variant: "ghost", "aria-label": "Actions menu", children: /* @__PURE__ */ jsx(DotsVerticalIcon, {}) }),
2133
2133
  closeOnSelect: false,
2134
2134
  items: actions.map((Action) => {
2135
- var _a, _b;
2135
+ var _a;
2136
2136
  if (Action.disableOnMobile)
2137
2137
  return null;
2138
2138
  const Wrapper = Action.Wrapper ?? DefaultWrapper;
2139
2139
  return {
2140
2140
  ...Action.buttonProps,
2141
2141
  onSelect: (_a = Action.buttonProps) == null ? void 0 : _a.onClick,
2142
- onClick: (_b = Action.buttonProps) == null ? void 0 : _b.onClick,
2143
- content: /* @__PURE__ */ jsx(Wrapper, { ...Action.wrapperProps, children: /* @__PURE__ */ jsxs(Flex, { gap: "2", align: "center", children: [
2142
+ content: /* @__PURE__ */ jsx(Wrapper, { ...Action.wrapperProps, children: /* @__PURE__ */ jsxs(Button, { children: [
2144
2143
  /* @__PURE__ */ jsx(Action.Icon, {}),
2145
2144
  Action.text
2146
2145
  ] }) })