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

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

Open
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

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

CLAassistant commented Feb 13, 2025

CLA assistant check
All committers have signed the CLA.

Copy link

netlify bot commented Feb 13, 2025

Deploy Preview for kongponents-sandbox ready!

Name Link
🔨 Latest commit 42dca0c
🔍 Latest deploy log https://app.netlify.com/sites/kongponents-sandbox/deploys/67d191d04bf7760008466637
😎 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 <[email protected]>
Copy link

netlify bot commented Feb 13, 2025

Deploy Preview for kongponents ready!

Name Link
🔨 Latest commit 42dca0c
🔍 Latest deploy log https://app.netlify.com/sites/kongponents/deploys/67d191d0cc958f00089049e8
😎 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
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