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>,
|
event: React.MouseEvent<HTMLLIElement, MouseEvent>,
|
||||||
index: number,
|
index: number,
|
||||||
) => {
|
) => {
|
||||||
setSelectedIndex(index);
|
// setSelectedIndex(index);
|
||||||
|
actionItems[0][0].onClick(event)
|
||||||
setOpen(false);
|
setOpen(false);
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -358,10 +359,10 @@ export function ActionGroup(p: { actions: ActionInfo[], identifierSubstring?: st
|
|||||||
return <MenuItem
|
return <MenuItem
|
||||||
key={option.props.action.name}
|
key={option.props.action.name}
|
||||||
selected={index === selectedIndex}
|
selected={index === selectedIndex}
|
||||||
// onClick={(event) => handleMenuItemClick(event, index)}
|
onClick={(event) => handleMenuItemClick(event, index)}
|
||||||
disabled={!isUserAllowed(user, option.props.action)}
|
disabled={!isUserAllowed(user, option.props.action)}
|
||||||
>
|
>
|
||||||
{option}
|
{option.props.action.name}
|
||||||
</MenuItem>
|
</MenuItem>
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user