-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
feat(useScrollParent): easily get the nearest scrollable parent #4721
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
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great, much cleaner, thank you! 🎉
Some other points you might have not come across!
Please, also update the tests to take into account the new regexes and x axis.
- Improved types - Full coverage test cases - Improved element validation and fallback handling
Apologies for the delay! I was focused on refining the test cases. Really appreciate your detailed code review and thoughtful suggestions! |
Apologies,I forgot to submit my comments.🤣 |
1. add includeHidden optional 2. support for fixed-position elements 3. Ensured absolute-positioned elements correctly skip static parent
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! 🚀
easily get the nearest scrollable parent reactively.
Before submitting the PR, please make sure you do the following
fixes #123
).Description
Additional context