Feature Request: Possibility to disable the scroll lock behavior on Modals #478
thibaut-trouve
started this conversation in
Ideas
Replies: 1 comment
-
I just opened another discussion with the same request:
I guess I will open a pull request with this ability and see if the team will accept it. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Feature:
At the moment it's not possible to disable the scroll lock behavior when a Dialog is opened.
We could add a prop "disableScrollLock" on the Dialog component, like on Material-UI's Modal: https://material-ui.com/api/modal/ that would prevent from blocking the scroll by adding a condition in this file when disableScrollLock === true: https://github.com/tailwindlabs/headlessui/blob/main/packages/%40headlessui-react/src/components/dialog/dialog.tsx#L181
Beta Was this translation helpful? Give feedback.
All reactions