Skip to content

Prevent pagination buttons from scrolling to top#750

Open
dregad wants to merge 2 commits into
javve:masterfrom
dregad:fix-scroll-to-top
Open

Prevent pagination buttons from scrolling to top#750
dregad wants to merge 2 commits into
javve:masterfrom
dregad:fix-scroll-to-top

Conversation

@dregad

@dregad dregad commented Jun 7, 2022

Copy link
Copy Markdown

Fixes a regression introduced by #499, causing the browser to scroll to
the top of the page when the pagination buttons are clicked.

Fixes a regression introduced by javve#499, causing the browser to scroll to 
the top of the page when the pagination buttons are clicked.
dregad added a commit to dregad/mantisbt that referenced this pull request Jun 7, 2022
This is the patch submitted upstream [[1]].

Fixes #30494

[1]: javve/list.js#750
dregad added a commit to dregad/mantisbt that referenced this pull request Jun 12, 2022
This is the patch submitted upstream [[1]].

Fixes #30494

[1]: javve/list.js#750
@codecov-commenter

codecov-commenter commented Jun 12, 2022

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 0% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 93.43%. Comparing base (d32c85d) to head (9dcb779).
⚠️ Report is 5 commits behind head on master.

Files with missing lines Patch % Lines
src/pagination.js 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #750      +/-   ##
==========================================
- Coverage   93.54%   93.43%   -0.12%     
==========================================
  Files          19       19              
  Lines         837      838       +1     
  Branches      199      199              
==========================================
  Hits          783      783              
- Misses         38       39       +1     
  Partials       16       16              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@dregad

dregad commented Jun 12, 2022

Copy link
Copy Markdown
Author

The initial commit prevented the click event's execution of for all the List's objects. This causes problems e.g. when the list contains clickable elements such as checkboxes, which become unusable.

@dregad

dregad commented Apr 23, 2024

Copy link
Copy Markdown
Author

@javve any chance this could be merged ?

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

Successfully merging this pull request may close these issues.

2 participants