pollination-react-io 1.75.0 → 1.75.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
CHANGED
@@ -53199,7 +53199,7 @@ var BaseDropdown = function (_a) {
|
|
53199
53199
|
} : _b, _c = _a.childOverlayStyle, childOverlayStyle = _c === void 0 ? {
|
53200
53200
|
padding: '10px',
|
53201
53201
|
cursor: 'pointer'
|
53202
|
-
} : _c, _d = _a.triggerStyle, triggerStyle = _d === void 0 ? {} : _d, _e = _a.placement, placement = _e === void 0 ? 'bottomCenter' : _e, _f = _a.icon, icon = _f === void 0 ? React__default.createElement(CaretDownFill$1, { size: 12 }) : _f, _g = _a.onSelect, onSelect = _g === void 0 ? function (option) { } : _g, _h = _a.disabled, disabled = _h === void 0 ? false : _h;
|
53202
|
+
} : _c, _d = _a.triggerStyle, triggerStyle = _d === void 0 ? {} : _d, _e = _a.placement, placement = _e === void 0 ? 'bottomCenter' : _e, _f = _a.icon, icon = _f === void 0 ? React__default.createElement(CaretDownFill$1, { size: 12 }) : _f, _g = _a.onSelect, onSelect = _g === void 0 ? function (option) { } : _g, _h = _a.disabled, disabled = _h === void 0 ? false : _h, _j = _a.action, action = _j === void 0 ? 'click' : _j;
|
53203
53203
|
var renderItem = useCallback(function (o) {
|
53204
53204
|
switch (o.type) {
|
53205
53205
|
case 'link':
|
@@ -53219,10 +53219,10 @@ var BaseDropdown = function (_a) {
|
|
53219
53219
|
return (React__default.createElement("div", null,
|
53220
53220
|
React__default.createElement("div", { style: { display: 'flex' } },
|
53221
53221
|
children,
|
53222
|
-
React__default.createElement(Dropdown$1, { trigger: [
|
53222
|
+
React__default.createElement(Dropdown$1, { trigger: [action], overlayStyle: overlayStyle, placement: placement, animation: 'slide-up',
|
53223
53223
|
// @ts-ignore
|
53224
53224
|
overlay: options && options.map(renderItem) },
|
53225
|
-
React__default.createElement("button", { disabled: disabled, className: 'poll-button', style: triggerStyle }, icon)))));
|
53225
|
+
React__default.createElement("button", { disabled: disabled, className: 'poll-button', style: triggerStyle, onClick: function (e) { return e.stopPropagation(); } }, icon)))));
|
53226
53226
|
};
|
53227
53227
|
|
53228
53228
|
var getAction$2 = function (key) {
|