Skip to content
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

Support root element in usePreventScroll #7743

Open
ritz078 opened this issue Feb 8, 2025 · 0 comments
Open

Support root element in usePreventScroll #7743

ritz078 opened this issue Feb 8, 2025 · 0 comments

Comments

@ritz078
Copy link
Contributor

ritz078 commented Feb 8, 2025

Provide a general summary of the feature here

ariaHideOutside accepts a root argument that defines the container outside which nothing is hidden. It is useful in situations where an SDK is rendered inside a container and we do not want the behaviour of that SDK to interfere with the behaviour outside that container. This is also related to shadow dom support but doesn't have to necessarily relate with it.

Similarly, we want support for root element in usePreventScroll so that the open overlay doesn't block the scrolling outside the root container.

🤔 Expected Behavior?

We want support for root element in usePreventScroll so that the open overlay doesn't block the scrolling outside the root container.

😯 Current Behavior

No matter where the element is rendered, the whole document's scroll is blocked.

💁 Possible Solution

Described in summary

🔦 Context

Summary explains the requirement

💻 Examples

No response

🧢 Your Company/Team

Nutrient

🕷 Tracking Issue

No response

@ritz078 ritz078 mentioned this issue Feb 8, 2025
5 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant