hopefully this time it works
This commit is contained in:
parent
4a739bcced
commit
1e44f63365
@ -300,7 +300,8 @@ export function ActionGroup(p: { actions: ActionInfo[], identifierSubstring?: st
|
||||
event: React.MouseEvent<HTMLLIElement, 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 <MenuItem
|
||||
key={option.props.action.name}
|
||||
selected={index === selectedIndex}
|
||||
// onClick={(event) => handleMenuItemClick(event, index)}
|
||||
onClick={(event) => handleMenuItemClick(event, index)}
|
||||
disabled={!isUserAllowed(user, option.props.action)}
|
||||
>
|
||||
{option}
|
||||
{option.props.action.name}
|
||||
</MenuItem>
|
||||
}
|
||||
)
|
||||
|
Loading…
x
Reference in New Issue
Block a user