Skip to content

Commit

Permalink
fix: Prefer flipping submenu to left side over to the bottom
Browse files Browse the repository at this point in the history
  • Loading branch information
frankieyan committed Dec 12, 2024
1 parent 5c79f80 commit 2603fa6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/menu/menu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ const MenuList = React.forwardRef<HTMLDivElement, MenuListProps>(function MenuLi
className={classNames('reactist_menulist', exceptionallySetClassName)}
getAnchorRect={getAnchorRect ?? undefined}
modal={modal}
flip={flip ?? (isSubMenu ? 'bottom' : undefined)}
flip={flip ?? (isSubMenu ? 'left bottom' : undefined)}
/>
</Portal>
) : null
Expand Down

0 comments on commit 2603fa6

Please sign in to comment.