From af680582f87896e4041675bb3a2272e907dad10c Mon Sep 17 00:00:00 2001 From: Anna Lambrechtsen Date: Thu, 11 Feb 2021 15:40:39 +1300 Subject: [PATCH] lower level triggerSubMenuAction wins over upper level triggerSubMenuAction --- src/SubPopupMenu.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/SubPopupMenu.tsx b/src/SubPopupMenu.tsx index 14a35170..7381ac99 100644 --- a/src/SubPopupMenu.tsx +++ b/src/SubPopupMenu.tsx @@ -412,7 +412,9 @@ export class SubPopupMenu extends React.Component { const extraProps = { openKeys: state.openKeys, selectedKeys: state.selectedKeys, - triggerSubMenuAction: this.props.triggerSubMenuAction, + triggerSubMenuAction: c.props?.triggerSubMenuAction ? + c.props.triggerSubMenuAction : + this.props.triggerSubMenuAction, subMenuKey, }; return this.renderCommonMenuItem(c, i, extraProps);