-
Notifications
You must be signed in to change notification settings - Fork 718
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow RemoveScroll
to be disabled in Select
component
#1496
Comments
Hi @neilff, the component currently only supports modal mode (as opposed to others like Popover which supports both modal/non-modal). Modal mode means no interaction outside the layer, and that includes scrolling. The main reason for not supporting both yet in Select is the complexity of the positioning combined with outside scroll support. The plan is to support non-modal mode (which subsequently would allow scrolling outside) but the select would close when you do so (we do this with tooltips too). |
Hi @benoitgrelard . This was closed as completed on Jul 1, 2022, but I am unclear on how to enable or implement non-modal mode. The desired effect for me is to keep the scrollbar visible, and just close the modal once the user wheels away, or scrolls away somehow. |
Hi @maurocolella, that is not implemented yet. Hopefully, will be addressed by #2253. However, that PR only adds the non modal mode to the |
Thank you for your reply @joaom00 . It seems reasonable to limit it to the In the meantime, I will simply override the implementation with a detailed comment (remove the |
It helped me:
Unfortunately, this does not enable the scroll, but only shows it (which allows you to remove the content shift). |
If you're using html body[data-scroll-locked] {
--removed-body-scroll-bar-size: 0 !important;
margin-right: 0 !important;
} |
I have my select in a modal so when I click the select it disables the modal. I just want clicking the select to have no effect on the modal. Can this be done with the current library? |
Why is this closed if the issue is still happening and the MR for modal stuff isn't merged? |
Wondering the same |
This issue is really annoying :( |
Sorry for digging an old thread but better than asking a duplicate question, any new update related to this? |
Feature request
We're curious if you'd consider allowing the
RemoveScroll
component to be disabled within theSelect
component.Overview
Our users have reported that it causes confusing behavior by removing the scroll bar. I'm curious what the reasoning was for this component to be used? I might be missing a larger a11y issue that I haven't considered here.
I noticed that the
RemoveScroll
API exposes anenabled
prop (as well as aremoveScrollBar
prop) of which might allow this to be toggled: https://github.com/theKashey/react-remove-scroll#usageExamples in other libraries
N/A
Who does this impact? Who is this for?
All users
The text was updated successfully, but these errors were encountered: