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

Search only work on page 1 of a table #1314

Closed
chowgi opened this issue Feb 16, 2023 · 7 comments
Closed

Search only work on page 1 of a table #1314

chowgi opened this issue Feb 16, 2023 · 7 comments
Labels
wontfix This will not be worked on

Comments

@chowgi
Copy link

chowgi commented Feb 16, 2023

Describe the bug
The search works great on page 1 but if a user tries searching on any other page it won't return the results. After a failed search pagination is broken and won't allow you to go back to page 1 without clicking another page first.

To Reproduce
Steps to reproduce the behavior:

  1. Go to page 2 of a table
  2. Search for a row you know exists. You won't get a result.
  3. Clear the search by deleting the word - don't use the x button in the search input.
  4. Click the page 1 button - it won't work until you click another page then you can return to page 1

Expected behavior
expect search to work on any page and for it not to break pagination

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: MaxOS
  • Browser: Safari
  • Version: 15.6.1
@globalkrisus
Copy link

This is a very annoying error. I hope it will be fixed as soon as possible :(

@cpba
Copy link
Contributor

cpba commented Mar 12, 2023

Are you using client pagination or server-side pagination?

  • If you're using client-side:

you should try setting resetPageOnUpdate to true.

  • If you're using server-side pagination:

try #1334 which should fix your issue, in such case this issue should be marked as a repeat of #1311.

@begoon
Copy link

begoon commented Apr 14, 2023

Any updates on the issue? It is unfortunate that broken search is the major impact on the usage.

@danielwlogan
Copy link

danielwlogan commented May 15, 2023

I, too, have run into this issue. To provide more context to the OP:

  • Using the x button of the search box instead of manually deleting the search causes the same broken behavior.
  • When the search box is clear, the original data of the (not first) selected page reappears but the pagination says it is now page 1.
  • Setting resetPageOnUpdate: true does not solve the issue.

OS: Windows (v10)
Browser: Edge (v113)

@danielwlogan
Copy link

danielwlogan commented May 15, 2023

  • When the search box is clear, the original data of the (not first) selected page reappears but the pagination says it is now page 1.

I think this issue is solved by setting resetPageOnUpdate: false, but this setting does not solve the main issue.

@stale
Copy link

stale bot commented Aug 10, 2023

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix This will not be worked on label Aug 10, 2023
@stale stale bot closed this as completed Sep 17, 2023
@kevin4dhd
Copy link

kevin4dhd commented Sep 17, 2023

Any solution?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

6 participants