1rosehip / jplist-es6

jPList is a JavaScript library for sorting, pagination and filtering of any HTML structure like DIVs, UL/LI, tables, etc.
https://www.jplist.org/
MIT License
83 stars 38 forks source link

go back to first page on filter #49

Open jasasoft opened 5 years ago

jasasoft commented 5 years ago

How to go back to first page after a filter is selected? It stays on current page.

Lakhiii commented 5 years ago

What pagination are you using? is it jplist pagination?

jasasoft commented 5 years ago

using jPLIST v1.2.0

Even on your example https://www.jplist.org/examples/cars When you choose page 4 of 14, then choose length of 3100, the list changes, but you are still on page 4. It should go to page 1 if there is a change, otherwise, you would miss page 1-3.

Lakhiii commented 5 years ago

Tried checking and pages 1-3 content is based on the length of 3100. Although I can't answer why it did not return as the page selection is part of a filter.