pollination-react-io 1.75.1 → 1.75.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.
@@ -53203,15 +53203,24 @@ var BaseDropdown = function (_a) {
53203
53203
  var renderItem = useCallback(function (o) {
53204
53204
  switch (o.type) {
53205
53205
  case 'link':
53206
- return (React__default.createElement("div", { style: childOverlayStyle, className: 'basedropdown-overlay-child', key: o.id, tabIndex: 0, role: 'button', onClick: function () { return window.location.href = o.to; } },
53206
+ return (React__default.createElement("div", { style: childOverlayStyle, className: 'basedropdown-overlay-child', key: o.id, tabIndex: 0, role: 'button', onClick: function (e) {
53207
+ e.stopPropagation();
53208
+ window.location.href = o.to;
53209
+ } },
53207
53210
  o.icon && React__default.createElement("span", { style: { marginRight: '5px' } }, o.icon),
53208
53211
  o.label));
53209
53212
  case 'label':
53210
- return (React__default.createElement("div", { style: childOverlayStyle, key: o.id, tabIndex: 0, role: 'button', onClick: function () { return onSelect(o); } },
53213
+ return (React__default.createElement("div", { style: childOverlayStyle, key: o.id, tabIndex: 0, role: 'button', onClick: function (e) {
53214
+ e.stopPropagation();
53215
+ onSelect(o);
53216
+ } },
53211
53217
  o.icon && React__default.createElement("span", { style: { marginRight: '5px' } }, o.icon),
53212
53218
  o.label));
53213
53219
  default:
53214
- return (React__default.createElement(Button, { style: childOverlayStyle, key: o.id, onClick: function () { return onSelect(o); } },
53220
+ return (React__default.createElement(Button, { style: childOverlayStyle, key: o.id, onClick: function (e) {
53221
+ e.stopPropagation();
53222
+ onSelect(o);
53223
+ } },
53215
53224
  o.icon,
53216
53225
  o.label));
53217
53226
  }