-
Notifications
You must be signed in to change notification settings - Fork 668
DataGrid - Pager - Show correct pageIndex when virtualScrolling is enabled on pageSize change #33412
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: 26_1
Are you sure you want to change the base?
DataGrid - Pager - Show correct pageIndex when virtualScrolling is enabled on pageSize change #33412
Changes from 2 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -9,6 +9,10 @@ const PAGER_CLASS = 'pager'; | |
| export const MAX_PAGES_COUNT = 10; | ||
|
|
||
| const getPageIndex = function (dataController) { | ||
| if (dataController.pageSize() === 0) { | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This lines may confuse later, I think it should be fixed on pageIndex level instead |
||
| return dataController.pageCount(); | ||
| } | ||
|
|
||
| // eslint-disable-next-line radix | ||
| return 1 + (parseInt(dataController.pageIndex()) || 0); | ||
| }; | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.