-
-
Notifications
You must be signed in to change notification settings - Fork 565
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
Closes #2302 #2305
Closes #2302 #2305
Conversation
Someone is attempting to deploy a commit to a Personal Account owned by @rupali-codes on Vercel. @rupali-codes first needs to authorize it. |
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.
Thank you, misochenk0, for creating this pull request and contributing to LinksHub! 💗
The maintainers will review this Pull Request and provide feedback as soon as possible! 😇
We appreciate your patience and contribution, Keep up the great work! 😀
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
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
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.
Excellent PR, @misochenk0 💪 🚀 💯
@Anmol-Baranwal please review this |
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.
🚀 Looks good to me.
@rupali-codes |
Fixes Issue
This pr closes #2302
Changes proposed
added findClosestScrollElement function inside useEffect on first render of pagination
that function will find closest scrolling element and use it for scrolling when user changes page
Use that behavior in order to prevent bugs in future when pagination could be implemented in any part of a project Or the main scrolling element will be changed
that fix prevents almost all future scrolling bugs here
Screenshots
Small screencast to demonstrate how it works now
Screencast from 03-17-2024 12:34:25 PM.webm
Note to reviewers
Thank you for opportunity to contribute to your project!
I open for any discussion feel free to ask any questions and leave comments)