@symply.io/basic-components 1.6.9-alpha.3 → 1.6.10-alpha.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/MenuButtonGroup/index.js +3 -2
- package/package.json +1 -1
package/MenuButtonGroup/index.js
CHANGED
@@ -70,6 +70,7 @@ function MenuButtonGroup(props) {
|
|
70
70
|
var theme = useCustomTheme({ primaryColor: primaryColor, secondaryColor: secondaryColor });
|
71
71
|
var _d = useState(null), anchorEl = _d[0], setAnchorEl = _d[1];
|
72
72
|
function onClick(event) {
|
73
|
+
event.stopPropagation();
|
73
74
|
setAnchorEl(event.currentTarget);
|
74
75
|
}
|
75
76
|
var onClose = function () {
|
@@ -77,10 +78,10 @@ function MenuButtonGroup(props) {
|
|
77
78
|
};
|
78
79
|
return (_jsxs(ThemeProvider, __assign({ theme: theme }, { children: [_jsx(Button, __assign({ "aria-haspopup": "true", variant: variant, color: color, onClick: onClick, fullWidth: true, size: size, endIcon: _jsx(ArrowDropDownIcon, { fontSize: "small" }), disabled: disabled }, { children: buttonText })), _jsx(Menu, __assign({ id: "button-menu", anchorEl: anchorEl, elevation: 2, anchorOrigin: {
|
79
80
|
vertical: "bottom",
|
80
|
-
horizontal: "center"
|
81
|
+
horizontal: "center",
|
81
82
|
}, transformOrigin: {
|
82
83
|
vertical: "top",
|
83
|
-
horizontal: "center"
|
84
|
+
horizontal: "center",
|
84
85
|
}, open: Boolean(anchorEl), onClose: onClose }, { children: buttons.map(function (button) {
|
85
86
|
var onClick = button.onClick, buttonText = button.buttonText, rest = __rest(button, ["onClick", "buttonText"]);
|
86
87
|
return (_jsx(ButtonItem, __assign({ buttonText: buttonText }, rest, { onClick: function (event) { return __awaiter(_this, void 0, void 0, function () {
|