Why is scrolling disabled after expanding a select component? #1895
-
I'm implementing a I understand that this is intentional behavior, but can I remove or customize it? E.g. make it possible to scroll and interact with the page while the |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Hey @adatti, you are right this is because currently The original reason for that was that the complex positioning behaviour specific to However, the recent addition of the Hope that answers your question! |
Beta Was this translation helpful? Give feedback.
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 amodal
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 enablespopper
style positioning means that in this particular mode we should be able to bring in themodal
prop. That hasn't been implemented yet but will be soon.Hope that …