Skip to content

MenuList with simplebar-react and menuPlacement="auto" never uses placement="top" #4812

@GP-marco

Description

@GP-marco

Bug:
[email protected] with [email protected] and menuPlacement="auto" is always positioning menu to "bottom".

When using react-select in combination with simplebar-react the functionality of menuPlacement="auto" is lost and it always falls back to menuPlacement="bottom".

For some reason the MenuPlacer is not correctly determining the placement when used in combination with simplebar-react.

Test case: https://codesandbox.io/s/suspicious-rumple-ni52n

How to reproduce: Make the browser window small enough and open the dropdowns.
The dropdown with placeholder "Select without Simplebar" will render the menu above. (correct)
The dropdown with placeholder "Select with Simplebar" will render the menu below (wrong)

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