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
Selectdoesn't offer the modal/non-modal modes and is instead hardcoded to being modal by default (unlike some other primitives which offer amodalprop to configure this).The original reason for that was that the complex positioning behaviour specific to
Selectmakes 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
positionprop which now enablespopperstyle positioning means that in this particular mode we should be able to bring in themodalprop. That hasn't been implemented yet but will be soon.Hope that …