MedicOneSystems / MedicOneSystems/livewire-datatables
UX: Out of Range Pagination should be reseted
Nobody has claimed this yet.
- Dominant language
- PHP
- Stars
- 1.2k
- Forks
- 257
- PR merge metrics
- No merged PRs in 30d
Description
Bug
Currently, when selecting another page through the pagination, than filter on the page and the filtering leads to fewer results (than needed to fill the page) it returns an empty table message. This is misleading as there are potentially results on previous pages / the first page.
Fix
Reset the page counter when filtering is triggered.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by tracing the datatable pagination and filtering interaction in the Laravel Livewire component. Reproduce the issue by selecting a later page, applying a filter that reduces the results, and verify that filtering returns the table to the first page instead of showing an empty table message.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- laravel, php
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 55/100