You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@atlas.apache.org by pp...@apache.org on 2025/09/22 09:25:37 UTC
(atlas) 01/01: ATLAS-5121: [REACT UI] The glossary dropdown menu does not disappear after clicking any of the options in the dropdown menu
This is an automated email from the ASF dual-hosted git repository.
ppawar pushed a commit to branch ATLAS-5121
in repository https://gitbox.apache.org/repos/asf/atlas.git
commit 2b0e881f025c02926f05c30fdcaca85a7bd06940
Author: Prasad Pawar <pr...@freestoneinfotech.com>
AuthorDate: Mon Sep 22 14:55:12 2025 +0530
ATLAS-5121: [REACT UI] The glossary dropdown menu does not disappear after clicking any of the options in the dropdown menu
---
dashboard/src/components/TreeNodeIcons.tsx | 6 ++++++
dashboard/src/views/SideBar/SideBarTree/SideBarTree.tsx | 4 ++++
2 files changed, 10 insertions(+)
diff --git a/dashboard/src/components/TreeNodeIcons.tsx b/dashboard/src/components/TreeNodeIcons.tsx
index e56624030..c0ec5968b 100644
--- a/dashboard/src/components/TreeNodeIcons.tsx
+++ b/dashboard/src/components/TreeNodeIcons.tsx
@@ -246,6 +246,7 @@ const TreeNodeIcons = (props: {
) {
setCategoryModal(true);
}
+ handleCloseNode();
}}
className="sidebar-menu-item"
data-cy="createClassification"
@@ -288,6 +289,7 @@ const TreeNodeIcons = (props: {
}
if (treeName == "Glossary" && node.types == "parent") {
setGlossaryModal(true);
+ setExpandNode(null);
}
if (treeName == "Glossary" && node.types == "child") {
const searchParams = new URLSearchParams();
@@ -340,6 +342,7 @@ const TreeNodeIcons = (props: {
if (treeName == "Glossary") {
setDeleteGlossaryModal(true);
}
+ handleCloseNode();
}}
data-cy="createClassification"
className="sidebar-menu-item"
@@ -407,6 +410,7 @@ const TreeNodeIcons = (props: {
<MenuItem
onClick={(_e) => {
setCategoryModal(true);
+ handleCloseNode();
}}
data-cy="createClassification"
className="sidebar-menu-item"
@@ -427,6 +431,7 @@ const TreeNodeIcons = (props: {
onClick={(e) => {
e.stopPropagation();
setRenameModal(true);
+ handleCloseNode();
}}
data-cy="createClassification"
className="sidebar-menu-item"
@@ -443,6 +448,7 @@ const TreeNodeIcons = (props: {
onClick={(e) => {
e.stopPropagation();
setDeleteModal(true);
+ handleCloseNode();
}}
data-cy="downloadBusinessMetadata"
className="sidebar-menu-item"
diff --git a/dashboard/src/views/SideBar/SideBarTree/SideBarTree.tsx b/dashboard/src/views/SideBar/SideBarTree/SideBarTree.tsx
index 97ec42c1d..08370c072 100644
--- a/dashboard/src/views/SideBar/SideBarTree/SideBarTree.tsx
+++ b/dashboard/src/views/SideBar/SideBarTree/SideBarTree.tsx
@@ -1024,6 +1024,7 @@ const BarTreeView: FC<{
if (setisGroupView) {
setisGroupView(!isGroupView);
}
+ handleClose();
}}
data-cy="groupOrFlatTreeView"
className="sidebar-menu-item"
@@ -1059,6 +1060,7 @@ const BarTreeView: FC<{
} else if (treeName == "Glossary") {
setGlossaryModal(true);
}
+ handleClose();
}}
data-cy="createClassification"
className="sidebar-menu-item"
@@ -1082,6 +1084,7 @@ const BarTreeView: FC<{
onClick={(e) => {
e.stopPropagation();
downloadFile();
+ handleClose();
}}
data-cy="downloadBusinessMetadata"
disabled={
@@ -1107,6 +1110,7 @@ const BarTreeView: FC<{
onClick={(e) => {
e.stopPropagation();
handleOpenModal();
+ handleClose();
}}
data-cy="importBusinessMetadata"
disabled={