Skip to content

Commit

Permalink
fix(ActionsMenu): fix props menu props not passed to Menu
Browse files Browse the repository at this point in the history
  • Loading branch information
alirezamirian committed Dec 9, 2024
1 parent 0bc1cbf commit 4a9be6b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/jui/src/ActionSystem/components/ActionsMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export type ActionMenuProps = {
export function ActionsMenu({
actions,
actionContext,
children = (actionMenuProps) => <Menu {...otherProps} {...actionMenuProps} />,
children = (actionMenuProps) => <Menu {...actionMenuProps} />,
...otherProps
}: ActionMenuProps) {
const allActions = getAllActions(actions);
Expand All @@ -66,6 +66,7 @@ export function ActionsMenu({
return (
<>
{children({
...otherProps,
onAction: (key) => {
const action = allActions.find(({ id }) => id === key);
if (action && isAction(action)) {
Expand Down

0 comments on commit 4a9be6b

Please sign in to comment.