Skip to content

Commit 8554236

Browse files
committed
fix: open of inline
1 parent 4f80097 commit 8554236

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/SubMenu/index.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,9 @@ const InternalSubMenu = (props: SubMenuProps) => {
218218

219219
// >>>>> Visible change
220220
const onPopupVisibleChange = (newVisible: boolean) => {
221-
onOpenChange(eventKey, newVisible);
221+
if (mode !== 'inline') {
222+
onOpenChange(eventKey, newVisible);
223+
}
222224
};
223225

224226
/**

0 commit comments

Comments
 (0)