From 4a9be6bdc943af5d374c99b006b4604ac136727c Mon Sep 17 00:00:00 2001 From: Alireza Date: Mon, 18 Nov 2024 21:27:58 +0100 Subject: [PATCH] fix(ActionsMenu): fix props menu props not passed to Menu --- packages/jui/src/ActionSystem/components/ActionsMenu.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/jui/src/ActionSystem/components/ActionsMenu.tsx b/packages/jui/src/ActionSystem/components/ActionsMenu.tsx index f56aaae4..71879119 100644 --- a/packages/jui/src/ActionSystem/components/ActionsMenu.tsx +++ b/packages/jui/src/ActionSystem/components/ActionsMenu.tsx @@ -55,7 +55,7 @@ export type ActionMenuProps = { export function ActionsMenu({ actions, actionContext, - children = (actionMenuProps) => , + children = (actionMenuProps) => , ...otherProps }: ActionMenuProps) { const allActions = getAllActions(actions); @@ -66,6 +66,7 @@ export function ActionsMenu({ return ( <> {children({ + ...otherProps, onAction: (key) => { const action = allActions.find(({ id }) => id === key); if (action && isAction(action)) {