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

Issue with pagination after deleting records #1714

Closed
Reefcrazed opened this issue Oct 3, 2024 · 0 comments · Fixed by #1734
Closed

Issue with pagination after deleting records #1714

Reefcrazed opened this issue Oct 3, 2024 · 0 comments · Fixed by #1734
Labels
bug Something isn't working

Comments

@Reefcrazed
Copy link

Have you searched through other issues to see if your problem is already reported or has been fixed?

Yes, I did not find it.

Did you read the documentation?

Yes, I did not find it.

Have you tried to publish the views?

Yes - I didn't work.

Is there an error in the console?

No

PHP Version

8.3.9

PowerGrid

5.10

Laravel

11

Livewire

3.5.6

Alpine JS

3.14.1

Theme

Tailwind 3.x

Describe the bug.

When using pagination, if you go to the last pagination page but then delete records on the last page you are left with a page saying no records exist, but they do. There will be no way to navigate back.

For instance, lets say you are showing 8 records per page but have 10 records and go the last page (page 2), delete records 9 and 10, you are left with a page saying "no records" and there is no way of getting back to page 1 unless you change the URL in the browser. I am including screenshots.

paginate_1

paginate_2

To Reproduce...

First click on "FOO" then....

Extra information

<?php
 //...
@luanfreitasdev luanfreitasdev added the bug Something isn't working label Oct 13, 2024
@luanfreitasdev luanfreitasdev linked a pull request Oct 16, 2024 that will close this issue
7 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants