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.esm.js
CHANGED
@@ -53205,21 +53205,18 @@ var BaseDropdown = function (_a) {
|
|
53205
53205
|
switch (o.type) {
|
53206
53206
|
case 'link':
|
53207
53207
|
return (React__default.createElement("div", { style: childOverlayStyle, className: 'basedropdown-overlay-child', key: o.id, tabIndex: 0, role: 'button', onClick: function (e) {
|
53208
|
-
e.stopPropagation();
|
53209
53208
|
window.location.href = o.to;
|
53210
53209
|
} },
|
53211
53210
|
o.icon && React__default.createElement("span", { style: { marginRight: '5px' } }, o.icon),
|
53212
53211
|
o.label));
|
53213
53212
|
case 'label':
|
53214
53213
|
return (React__default.createElement("div", { style: childOverlayStyle, key: o.id, tabIndex: 0, role: 'button', onClick: function (e) {
|
53215
|
-
e.stopPropagation();
|
53216
53214
|
onSelect(o);
|
53217
53215
|
} },
|
53218
53216
|
o.icon && React__default.createElement("span", { style: { marginRight: '5px' } }, o.icon),
|
53219
53217
|
o.label));
|
53220
53218
|
default:
|
53221
53219
|
return (React__default.createElement(Button, { style: childOverlayStyle, key: o.id, onClick: function (e) {
|
53222
|
-
e.stopPropagation();
|
53223
53220
|
onSelect(o);
|
53224
53221
|
} },
|
53225
53222
|
o.icon,
|
@@ -53229,7 +53226,7 @@ var BaseDropdown = function (_a) {
|
|
53229
53226
|
return (React__default.createElement("div", null,
|
53230
53227
|
React__default.createElement("div", { style: { display: 'flex' } },
|
53231
53228
|
children,
|
53232
|
-
React__default.createElement(Dropdown$1, { trigger: [action], overlayStyle: overlayStyle, placement: placement, animation: 'slide-up',
|
53229
|
+
React__default.createElement(Dropdown$1, { trigger: [action], overlayStyle: overlayStyle, placement: placement, animation: 'slide-up', onOverlayClick: function (e) { return e.stopPropagation(); },
|
53233
53230
|
// @ts-ignore
|
53234
53231
|
overlay: options && options.map(renderItem) },
|
53235
53232
|
React__default.createElement("button", { disabled: disabled, className: 'poll-button', style: triggerStyle, onClick: function (e) { return e.stopPropagation(); } }, icon)))));
|