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(pagination): set pageCount minimal value is 1 #857

Merged
merged 2 commits into from
Apr 19, 2024

Conversation

preflower
Copy link
Contributor

this PR to fix Pagination component abnormal behaviours when total is 0:

  1. PaginationList items is [] when total is 0
  2. PaginationNext is clickable when total is 0

Demo

image

@zernonia
Copy link
Collaborator

Nice catch and PR @preflower !!!
Can you help add a simple test for the case above? 😁

@preflower
Copy link
Contributor Author

Nice catch and PR @preflower !!! Can you help add a simple test for the case above? 😁

test case has been added

Copy link
Collaborator

@zernonia zernonia left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nicely done @preflower ! Appreciate the fix and the test 💚🔥

@zernonia zernonia merged commit 862a2ac into radix-vue:main Apr 19, 2024
2 checks passed
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