Skip to content

Commit 2488422

Browse files
fix: add more state props (#433)
Co-authored-by: 期贤 <[email protected]>
1 parent 00583dc commit 2488422

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

src/Menu.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,9 @@ export interface MenuProps
133133
subMenuItemProps: any,
134134
stateProps: {
135135
selected: boolean;
136+
open: boolean;
137+
active: boolean;
138+
disabled: boolean;
136139
},
137140
) => React.ReactElement;
138141
}

src/SubMenu/index.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -357,6 +357,9 @@ const InternalSubMenu = (props: SubMenuProps) => {
357357
if (_internalRenderSubMenuItem) {
358358
listNode = _internalRenderSubMenuItem(listNode, props, {
359359
selected: childrenSelected,
360+
active: mergedActive,
361+
open,
362+
disabled: mergedDisabled,
360363
});
361364
}
362365

0 commit comments

Comments
 (0)