pollination-react-io 1.76.0 → 1.76.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/build/index.esm.js +1 -4
- package/build/index.esm.js.map +1 -1
- package/build/index.js +1 -4
- package/build/index.js.map +1 -1
- package/package.json +1 -1
package/build/index.js
CHANGED
@@ -53232,21 +53232,18 @@ var BaseDropdown = function (_a) {
|
|
53232
53232
|
switch (o.type) {
|
53233
53233
|
case 'link':
|
53234
53234
|
return (React__default["default"].createElement("div", { style: childOverlayStyle, className: 'basedropdown-overlay-child', key: o.id, tabIndex: 0, role: 'button', onClick: function (e) {
|
53235
|
-
e.stopPropagation();
|
53236
53235
|
window.location.href = o.to;
|
53237
53236
|
} },
|
53238
53237
|
o.icon && React__default["default"].createElement("span", { style: { marginRight: '5px' } }, o.icon),
|
53239
53238
|
o.label));
|
53240
53239
|
case 'label':
|
53241
53240
|
return (React__default["default"].createElement("div", { style: childOverlayStyle, key: o.id, tabIndex: 0, role: 'button', onClick: function (e) {
|
53242
|
-
e.stopPropagation();
|
53243
53241
|
onSelect(o);
|
53244
53242
|
} },
|
53245
53243
|
o.icon && React__default["default"].createElement("span", { style: { marginRight: '5px' } }, o.icon),
|
53246
53244
|
o.label));
|
53247
53245
|
default:
|
53248
53246
|
return (React__default["default"].createElement(Button, { style: childOverlayStyle, key: o.id, onClick: function (e) {
|
53249
|
-
e.stopPropagation();
|
53250
53247
|
onSelect(o);
|
53251
53248
|
} },
|
53252
53249
|
o.icon,
|
@@ -53256,7 +53253,7 @@ var BaseDropdown = function (_a) {
|
|
53256
53253
|
return (React__default["default"].createElement("div", null,
|
53257
53254
|
React__default["default"].createElement("div", { style: { display: 'flex' } },
|
53258
53255
|
children,
|
53259
|
-
React__default["default"].createElement(Dropdown$1, { trigger: [action], overlayStyle: overlayStyle, placement: placement, animation: 'slide-up',
|
53256
|
+
React__default["default"].createElement(Dropdown$1, { trigger: [action], overlayStyle: overlayStyle, placement: placement, animation: 'slide-up', onOverlayClick: function (e) { return e.stopPropagation(); },
|
53260
53257
|
// @ts-ignore
|
53261
53258
|
overlay: options && options.map(renderItem) },
|
53262
53259
|
React__default["default"].createElement("button", { disabled: disabled, className: 'poll-button', style: triggerStyle, onClick: function (e) { return e.stopPropagation(); } }, icon)))));
|