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

Prevent pagination buttons from scrolling to top #750

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

dregad
Copy link

@dregad dregad commented Jun 7, 2022

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
Copy link

codecov-commenter commented Jun 12, 2022

Codecov Report

Merging #750 (9dcb779) into master (d32c85d) will decrease coverage by 0.11%.
The diff coverage is 0.00%.

@@            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              
Impacted Files Coverage Δ
src/pagination.js 90.90% <0.00%> (-1.40%) ⬇️

📣 Codecov can now indicate which changes are the most critical in Pull Requests. Learn more

@dregad
Copy link
Author

dregad commented Jun 12, 2022

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.

CasN pushed a commit to CasN/mantisbt that referenced this pull request Aug 29, 2022
This is the patch submitted upstream [[1]].

Fixes #30494

[1]: javve/list.js#750
@dregad
Copy link
Author

dregad commented Apr 23, 2024

@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.

None yet

2 participants