-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Open
Labels
issue/bug-confirmedIssues about a bug that has been confirmed by a maintainerIssues about a bug that has been confirmed by a maintainermenu-bugAddresses menu positioning, scrolling, or general interactionsAddresses menu positioning, scrolling, or general interactions
Description
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
Labels
issue/bug-confirmedIssues about a bug that has been confirmed by a maintainerIssues about a bug that has been confirmed by a maintainermenu-bugAddresses menu positioning, scrolling, or general interactionsAddresses menu positioning, scrolling, or general interactions