This is an automated email from the ASF dual-hosted git repository.
ppawar pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/atlas.git
The following commit(s) were added to refs/heads/master by this push:
new 3437fda30 ATLAS-5121: [REACT UI] The glossary dropdown menu does not
disappear after clicking any of the options in the dropdown menu (#452)
3437fda30 is described below
commit 3437fda30d48337dca490c08a4fd36838282bbef
Author: Prasad Pawar <[email protected]>
AuthorDate: Thu Sep 25 17:50:44 2025 +0530
ATLAS-5121: [REACT UI] The glossary dropdown menu does not disappear after
clicking any of the options in the dropdown menu (#452)
---
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 49a0d1aff..3236713cf 100644
--- a/dashboard/src/views/SideBar/SideBarTree/SideBarTree.tsx
+++ b/dashboard/src/views/SideBar/SideBarTree/SideBarTree.tsx
@@ -1027,6 +1027,7 @@ const BarTreeView: FC<{
if (setisGroupView) {
setisGroupView(!isGroupView);
}
+ handleClose();
}}
data-cy="groupOrFlatTreeView"
className="sidebar-menu-item"
@@ -1062,6 +1063,7 @@ const BarTreeView: FC<{
} else if (treeName == "Glossary") {
setGlossaryModal(true);
}
+ handleClose();
}}
data-cy="createClassification"
className="sidebar-menu-item"
@@ -1085,6 +1087,7 @@ const BarTreeView: FC<{
onClick={(e) => {
e.stopPropagation();
downloadFile();
+ handleClose();
}}
data-cy="downloadBusinessMetadata"
disabled={
@@ -1110,6 +1113,7 @@ const BarTreeView: FC<{
onClick={(e) => {
e.stopPropagation();
handleOpenModal();
+ handleClose();
}}
data-cy="importBusinessMetadata"
disabled={