MedicOneSystems / MedicOneSystems/livewire-datatables

UX: Out of Range Pagination should be reseted

Open
#593 0 comments 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.