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.js
CHANGED
@@ -53226,7 +53226,7 @@ var BaseDropdown = function (_a) {
|
|
53226
53226
|
} : _b, _c = _a.childOverlayStyle, childOverlayStyle = _c === void 0 ? {
|
53227
53227
|
padding: '10px',
|
53228
53228
|
cursor: 'pointer'
|
53229
|
-
} : _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["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;
|
53229
|
+
} : _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["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;
|
53230
53230
|
var renderItem = React.useCallback(function (o) {
|
53231
53231
|
switch (o.type) {
|
53232
53232
|
case 'link':
|
@@ -53246,10 +53246,10 @@ var BaseDropdown = function (_a) {
|
|
53246
53246
|
return (React__default["default"].createElement("div", null,
|
53247
53247
|
React__default["default"].createElement("div", { style: { display: 'flex' } },
|
53248
53248
|
children,
|
53249
|
-
React__default["default"].createElement(Dropdown$1, { trigger: [
|
53249
|
+
React__default["default"].createElement(Dropdown$1, { trigger: [action], overlayStyle: overlayStyle, placement: placement, animation: 'slide-up',
|
53250
53250
|
// @ts-ignore
|
53251
53251
|
overlay: options && options.map(renderItem) },
|
53252
|
-
React__default["default"].createElement("button", { disabled: disabled, className: 'poll-button', style: triggerStyle }, icon)))));
|
53252
|
+
React__default["default"].createElement("button", { disabled: disabled, className: 'poll-button', style: triggerStyle, onClick: function (e) { return e.stopPropagation(); } }, icon)))));
|
53253
53253
|
};
|
53254
53254
|
|
53255
53255
|
var getAction$2 = function (key) {
|