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.
- package/build/index.esm.js +12 -3
- package/build/index.esm.js.map +1 -1
- package/build/index.js +12 -3
- package/build/index.js.map +1 -1
- package/package.json +1 -1
package/build/index.js
CHANGED
@@ -53230,15 +53230,24 @@ var BaseDropdown = function (_a) {
|
|
53230
53230
|
var renderItem = React.useCallback(function (o) {
|
53231
53231
|
switch (o.type) {
|
53232
53232
|
case 'link':
|
53233
|
-
return (React__default["default"].createElement("div", { style: childOverlayStyle, className: 'basedropdown-overlay-child', key: o.id, tabIndex: 0, role: 'button', onClick: function () {
|
53233
|
+
return (React__default["default"].createElement("div", { style: childOverlayStyle, className: 'basedropdown-overlay-child', key: o.id, tabIndex: 0, role: 'button', onClick: function (e) {
|
53234
|
+
e.stopPropagation();
|
53235
|
+
window.location.href = o.to;
|
53236
|
+
} },
|
53234
53237
|
o.icon && React__default["default"].createElement("span", { style: { marginRight: '5px' } }, o.icon),
|
53235
53238
|
o.label));
|
53236
53239
|
case 'label':
|
53237
|
-
return (React__default["default"].createElement("div", { style: childOverlayStyle, key: o.id, tabIndex: 0, role: 'button', onClick: function () {
|
53240
|
+
return (React__default["default"].createElement("div", { style: childOverlayStyle, key: o.id, tabIndex: 0, role: 'button', onClick: function (e) {
|
53241
|
+
e.stopPropagation();
|
53242
|
+
onSelect(o);
|
53243
|
+
} },
|
53238
53244
|
o.icon && React__default["default"].createElement("span", { style: { marginRight: '5px' } }, o.icon),
|
53239
53245
|
o.label));
|
53240
53246
|
default:
|
53241
|
-
return (React__default["default"].createElement(Button, { style: childOverlayStyle, key: o.id, onClick: function () {
|
53247
|
+
return (React__default["default"].createElement(Button, { style: childOverlayStyle, key: o.id, onClick: function (e) {
|
53248
|
+
e.stopPropagation();
|
53249
|
+
onSelect(o);
|
53250
|
+
} },
|
53242
53251
|
o.icon,
|
53243
53252
|
o.label));
|
53244
53253
|
}
|