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} } )