diff --git a/src/components/common/Breadcrumbs.js b/src/components/common/Breadcrumbs.js
index 0a845362..9792b70b 100644
--- a/src/components/common/Breadcrumbs.js
+++ b/src/components/common/Breadcrumbs.js
@@ -1,5 +1,6 @@
import {
Box,
+ ClickAwayListener,
IconButton,
Link,
MenuItem,
@@ -114,8 +115,11 @@ export const CustomBreadcrumbsWithMenu = ({ breadcrumbs }) => {
const collapsed = !!breadcrumbs && breadcrumbs.length > 5;
const handleClick = (event) => {
- if (event) {
+ console.log('running e ===');
+ if (event && anchorEl === null) {
setAnchorEl(event.currentTarget);
+ } else if (anchorEl !== null) {
+ setAnchorEl(null);
}
};
@@ -161,15 +165,20 @@ export const CustomBreadcrumbsWithMenu = ({ breadcrumbs }) => {
placement="bottom"
aria-labelledby="with-menu-breadcrumbs"
>
- {collapsedCrumbs && collapsedCrumbs.length > 1
- ? collapsedCrumbs.map((crumb) => (
-
- ))
- : null}
+
+
+ {collapsedCrumbs && collapsedCrumbs.length > 1
+ ? collapsedCrumbs.map((crumb) => (
+
+ ))
+ : null}
+
+
- )}
+ )}
+