gridjs icon indicating copy to clipboard operation
gridjs copied to clipboard

Bug: Search and/or Sort being enabled causes initial page setting to be ignored and is set to 1st page.

Open tjblue opened this issue 6 months ago • 1 comments

Describe the bug A clear and concise description of what the bug is.

To Reproduce Steps to reproduce the behavior:

  1. Build Grid without sort or search enabled.
  2. Enable a different initial page on render with pagination config: pagination: {limit: 1, page: 1} // page: 1 sets rendered page to 2
  3. Observe that grid does render on 2nd page.
  4. Enable search and/or sort. search: true, sort: true
  5. Observe grid does not render on page 2. Renders to page 1.

Expected behavior Search and Sort should not affect the initial page setting.

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

Desktop (please complete the following information):

  • OS: Windows
  • Browser: Edge
  • Version: 127.0.2651.86 (Official build) (64-bit)

Additional context Add any other context about the problem here.

tjblue avatar Aug 06 '24 05:08 tjblue