Skip to content

Commit 3c41def

Browse files
committed
fix: Prefer flipping submenu to left side over to the bottom
1 parent 3594542 commit 3c41def

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/menu/menu.stories.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ be changed by passing `modal={false}` to `<MenuList>`
126126

127127
You may nest the `<SubMenu>` component within `<Menu>` to create submenus.
128128

129-
On smaller viewports where there isn't enough space to render the submenu on the side, it will be rendered under its parent menu item instead.
129+
On smaller viewports where there isn't enough space to render the submenu on either side, it will be rendered under its parent menu item instead.
130130

131131
<Canvas>
132132
<Story

src/menu/menu.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ const MenuList = React.forwardRef<HTMLDivElement, MenuListProps>(function MenuLi
172172
className={classNames('reactist_menulist', exceptionallySetClassName)}
173173
getAnchorRect={getAnchorRect ?? undefined}
174174
modal={modal}
175-
flip={flip ?? (isSubMenu ? 'bottom' : undefined)}
175+
flip={flip ?? (isSubMenu ? 'left bottom' : undefined)}
176176
/>
177177
</Portal>
178178
) : null

0 commit comments

Comments
 (0)