From 2543838a5e83eef0cd856e937cb0d6db45f0b01a Mon Sep 17 00:00:00 2001 From: "Jingwei.Zhang" Date: Mon, 8 Aug 2022 17:21:55 +0800 Subject: [PATCH] fix: Fix the display of the row actions when the volume status is being created Fix: when the volume's status is being created, the sub menu actions in the row actions are hidden. Trigger reason: When the More Actions drop-down menu contains disabled actions and the only submenu that can be used normally, the submenu items are not displayed successfully Change-Id: Ide3f06716d1df71593fd654f24feedabe4f68da7 --- src/components/Tables/Base/ItemActionButtons/index.jsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/components/Tables/Base/ItemActionButtons/index.jsx b/src/components/Tables/Base/ItemActionButtons/index.jsx index e9193568..e906ea6f 100644 --- a/src/components/Tables/Base/ItemActionButtons/index.jsx +++ b/src/components/Tables/Base/ItemActionButtons/index.jsx @@ -171,7 +171,7 @@ function DropdownActionButton({ dividerElement = ; } - if (allowedFatherCount === 1 && allowedAll === 1) { + if (allowedFatherCount === 1 && allowedAll === 1 && actionButton) { const className = isWide ? '' : styles['single-more-action']; moreElement = {actionButton}; } else if (allowedFatherCount > 0) { @@ -235,7 +235,6 @@ function getActionList(actions, item, containerProps) { actionList.push(newAction); } }); - return { actionList, firstAction: newFirst,