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

Closes #2302 #2305

Merged
merged 1 commit into from
Mar 24, 2024
Merged

Closes #2302 #2305

merged 1 commit into from
Mar 24, 2024

Conversation

misochenk0
Copy link
Contributor

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)

Copy link

vercel bot commented Mar 17, 2024

Someone is attempting to deploy a commit to a Personal Account owned by @rupali-codes on Vercel.

@rupali-codes first needs to authorize it.

Copy link

@github-actions github-actions bot left a 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! 😀

Copy link

vercel bot commented Mar 17, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
linkshub ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 17, 2024 4:14pm

Copy link
Owner

@rupali-codes rupali-codes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

Copy link
Collaborator

@aftabrehan aftabrehan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Excellent PR, @misochenk0 💪 🚀 💯

@aftabrehan aftabrehan added status: ready-to-merge Approved & its ready-to-merge 🚀 ready priority: medium Modifying an existing feature goal: bug-fixed For PRs resolving bugs labels Mar 18, 2024
@github-actions github-actions bot mentioned this pull request Mar 18, 2024
3 tasks
@rupali-codes
Copy link
Owner

@Anmol-Baranwal please review this

Copy link
Collaborator

@Anmol-Baranwal Anmol-Baranwal left a 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.

@Anmol-Baranwal
Copy link
Collaborator

@rupali-codes
Please merge this!

@rupali-codes rupali-codes merged commit a73f4e1 into rupali-codes:main Mar 24, 2024
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
goal: bug-fixed For PRs resolving bugs priority: medium Modifying an existing feature 🚀 ready status: ready-to-merge Approved & its ready-to-merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] Pagination usage
5 participants