Skip to content

Misaligned menu when using menuPortalTarget and menuPlacement = auto #4336

@ArnaudWeyts

Description

@ArnaudWeyts

Are you reporting a bug or runtime error?

A Bug

For some reason the menu is misaligned slightly to the left when using the body as a menuPortalTarget and setting the menuPlacement to auto, I'm not sure why this is the case and it only seems to happen in a specific layout (select on the right bottom), it seems like it could be adjusting for a potential scrollbar or something. When you hover over the items, the menu suddenly jumps to the correct position.

https://codesandbox.io/s/react-select-v3-sandbox-forked-d5txb?file=/example.js

Dec-17-2020 16-39-03

Thanks for your work on the library!

Metadata

Metadata

Assignees

No one assigned

    Labels

    issue/bug-confirmedIssues about a bug that has been confirmed by a maintainermenu-bugAddresses menu positioning, scrolling, or general interactions

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions