Skip to content

Why is scrolling disabled after expanding a select component? #1895

Answered by benoitgrelard
adatti asked this question in Help
Discussion options

You must be logged in to vote

Hey @adatti, you are right this is because currently Select doesn't offer the modal/non-modal modes and is instead hardcoded to being modal by default (unlike some other primitives which offer a modal prop to configure this).

The original reason for that was that the complex positioning behaviour specific to Select makes it very difficult to enable scrolling because we wouldn't know how to align it anymore when scrolled (that's why it's modal in MacOS too).

However, the recent addition of the position prop which now enables popper style positioning means that in this particular mode we should be able to bring in the modal prop. That hasn't been implemented yet but will be soon.

Hope that …

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@adatti
Comment options

@benoitgrelard
Comment options

Answer selected by adatti
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants