From 1e44f63365fa553bceeb647f22fa22c55b0c0f5d Mon Sep 17 00:00:00 2001 From: ACoolName Date: Fri, 31 May 2024 22:51:14 +0300 Subject: [PATCH] hopefully this time it works --- src/common.tsx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/common.tsx b/src/common.tsx index 7f246f7..b0e4302 100644 --- a/src/common.tsx +++ b/src/common.tsx @@ -300,7 +300,8 @@ export function ActionGroup(p: { actions: ActionInfo[], identifierSubstring?: st event: React.MouseEvent, index: number, ) => { - setSelectedIndex(index); + // setSelectedIndex(index); + actionItems[0][0].onClick(event) setOpen(false); }; @@ -358,10 +359,10 @@ export function ActionGroup(p: { actions: ActionInfo[], identifierSubstring?: st return handleMenuItemClick(event, index)} + onClick={(event) => handleMenuItemClick(event, index)} disabled={!isUserAllowed(user, option.props.action)} > - {option} + {option.props.action.name} } )