Skip to content

Commit

Permalink
lower level triggerSubMenuAction wins over upper level triggerSubMenu…
Browse files Browse the repository at this point in the history
…Action
  • Loading branch information
llambanna committed Feb 11, 2021
1 parent 8085da9 commit af68058
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/SubPopupMenu.tsx
Expand Up @@ -412,7 +412,9 @@ export class SubPopupMenu extends React.Component<SubPopupMenuProps> {
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);
Expand Down

0 comments on commit af68058

Please sign in to comment.