Skip to content

Commit

Permalink
Merge pull request #4192 from jeclrsg/fix-dgrid-shim-unknown-page-cou…
Browse files Browse the repository at this point in the history
…nt-v2

fix(dgrid-shim): max page when pagination counts are unknown
  • Loading branch information
GordonSmith authored Apr 24, 2024
2 parents 84e667a + 8615155 commit cd8e33e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/dgrid-shim/src/gridHelper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ export const Pagination = declare([DGridPagination], {
if (total >= UNKNOWN_NUM_ROWS) {
query(".dgrid-page-link:last-child", this.paginationNavigationNode).forEach(function (link) {
domClass.toggle(link, "dgrid-page-disabled", true);
if (parseInt(link.innerText, 10) >= UNKNOWN_NUM_ROWS) {
if (!isNaN(parseInt(link.innerText, 10))) {
link.innerText = "???";
}
link.tabIndex = -1;
Expand Down

0 comments on commit cd8e33e

Please sign in to comment.