From eb4747362d17f3d2e367cd3c08cc517cd3539ca6 Mon Sep 17 00:00:00 2001 From: Ashish Gupta Date: Fri, 30 Sep 2022 19:28:32 +0530 Subject: [PATCH] fix the disabled button click issue (#7816) --- .../common/entityPageInfo/ManageButton/ManageButton.tsx | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/openmetadata-ui/src/main/resources/ui/src/components/common/entityPageInfo/ManageButton/ManageButton.tsx b/openmetadata-ui/src/main/resources/ui/src/components/common/entityPageInfo/ManageButton/ManageButton.tsx index 22447ea6480..54cc40d9a4b 100644 --- a/openmetadata-ui/src/main/resources/ui/src/components/common/entityPageInfo/ManageButton/ManageButton.tsx +++ b/openmetadata-ui/src/main/resources/ui/src/components/common/entityPageInfo/ManageButton/ManageButton.tsx @@ -70,9 +70,11 @@ const ManageButton: FC = ({ })} size={8} onClick={(e) => { - e.stopPropagation(); - setIsDelete(true); - setShowActions(false); + if (canDelete) { + e.stopPropagation(); + setIsDelete(true); + setShowActions(false); + } }}>