Skip to content

Commit

Permalink
fix: add more state props
Browse files Browse the repository at this point in the history
  • Loading branch information
chenshuai2144 committed Jan 19, 2022
1 parent 00583dc commit 79b6dda
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Menu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,9 @@ export interface MenuProps
subMenuItemProps: any,
stateProps: {
selected: boolean;
open: boolean;
active: boolean;
disabled: boolean;
},
) => React.ReactElement;
}
Expand Down
3 changes: 3 additions & 0 deletions src/SubMenu/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -357,6 +357,9 @@ const InternalSubMenu = (props: SubMenuProps) => {
if (_internalRenderSubMenuItem) {
listNode = _internalRenderSubMenuItem(listNode, props, {
selected: childrenSelected,
active: mergedActive,
open,
disabled: mergedDisabled,
});
}

Expand Down

0 comments on commit 79b6dda

Please sign in to comment.