Skip to content

fix(kpagination): lost highlight of visible pages on pageCount change#2616

Open
schogges wants to merge 13 commits intomainfrom
fix/visible-pages_on_new_page-count
Open

fix(kpagination): lost highlight of visible pages on pageCount change#2616
schogges wants to merge 13 commits intomainfrom
fix/visible-pages_on_new_page-count

Conversation

@schogges
Copy link
Copy Markdown
Contributor

@schogges schogges commented Feb 13, 2025

When the pageCount (total items) changes and the current page is higher than the first pages, the component sets the visible pages back to the first pages.


I've added a button to the sandbox to randomly update the total count for easier repro. To actually repro just undo the changes in src/components/KPagination/KPagination.vue. This should then show the first pages only and no active pagination button.

@CLAassistant
Copy link
Copy Markdown

CLAassistant commented Feb 13, 2025

CLA assistant check
All committers have signed the CLA.

@netlify
Copy link
Copy Markdown

netlify bot commented Feb 13, 2025

Deploy Preview for kongponents-sandbox ready!

Name Link
🔨 Latest commit 66b178e
🔍 Latest deploy log https://app.netlify.com/sites/kongponents-sandbox/deploys/68089427dab31800089b08be
😎 Deploy Preview https://deploy-preview-2616--kongponents-sandbox.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

When the pageCount (total items) changes and the current page is higher than the first pages, the
component sets the visible pages back to the first pages.

Signed-off-by: schogges <24444046+schogges@users.noreply.github.com>
@netlify
Copy link
Copy Markdown

netlify bot commented Feb 13, 2025

Deploy Preview for kongponents ready!

Name Link
🔨 Latest commit 66b178e
🔍 Latest deploy log https://app.netlify.com/sites/kongponents/deploys/68089427678f4b0008e91911
😎 Deploy Preview https://deploy-preview-2616--kongponents.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@schogges schogges force-pushed the fix/visible-pages_on_new_page-count branch from 507a0be to 2442393 Compare February 13, 2025 15:34
@kongponents-bot
Copy link
Copy Markdown
Collaborator

Preview package from this PR in consuming application

In consuming application project install preview version of kongponents generated by this PR:

@kong/kongponents@pr-2616

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.

3 participants