tenjin-ui-kit 0.2.172 → 0.2.173
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/components/breadCrumbs/index.js +11 -10
- package/package.json +1 -1
|
@@ -56,17 +56,18 @@ function BreadCrumbs(props) {
|
|
|
56
56
|
navigate(item.link);
|
|
57
57
|
}
|
|
58
58
|
}
|
|
59
|
+
setMenuOpen(false);
|
|
59
60
|
}
|
|
60
61
|
var handleMenuClose = function handleMenuClose(event, item) {
|
|
61
|
-
if (item && item.onClick) {
|
|
62
|
-
|
|
63
|
-
} else if (item && item.link !== undefined) {
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
}
|
|
62
|
+
// if (item && item.onClick) {
|
|
63
|
+
// item.onClick(item.data);
|
|
64
|
+
// } else if (item && item.link !== undefined) {
|
|
65
|
+
// if (item.serverSide) {
|
|
66
|
+
// window.location.href = item.link;
|
|
67
|
+
// } else {
|
|
68
|
+
// navigate(item.link);
|
|
69
|
+
// }
|
|
70
|
+
// }
|
|
70
71
|
setMenuOpen(false);
|
|
71
72
|
};
|
|
72
73
|
return /*#__PURE__*/React.createElement("div", {
|
|
@@ -154,7 +155,7 @@ function BreadCrumbs(props) {
|
|
|
154
155
|
return /*#__PURE__*/React.createElement(_material.MenuItem, {
|
|
155
156
|
key: index,
|
|
156
157
|
onClick: function onClick(e) {
|
|
157
|
-
return
|
|
158
|
+
return handleClick(e, breadcrumb);
|
|
158
159
|
},
|
|
159
160
|
sx: (_ref = {
|
|
160
161
|
textDecoration: "none",
|