Skip to content

Commit af68058

Browse files
committed
lower level triggerSubMenuAction wins over upper level triggerSubMenuAction
1 parent 8085da9 commit af68058

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/SubPopupMenu.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -412,7 +412,9 @@ export class SubPopupMenu extends React.Component<SubPopupMenuProps> {
412412
const extraProps = {
413413
openKeys: state.openKeys,
414414
selectedKeys: state.selectedKeys,
415-
triggerSubMenuAction: this.props.triggerSubMenuAction,
415+
triggerSubMenuAction: c.props?.triggerSubMenuAction ?
416+
c.props.triggerSubMenuAction :
417+
this.props.triggerSubMenuAction,
416418
subMenuKey,
417419
};
418420
return this.renderCommonMenuItem(c, i, extraProps);

0 commit comments

Comments
 (0)