-
Notifications
You must be signed in to change notification settings - Fork 113
Open
Description
When using v-model:current-page
in combination with filtered data, the pagination does not reset correctly.
Steps to reproduce
- Navigate to a page other than the first one (e.g., page 3).
- Apply a filter that reduces the dataset (e.g., searching by a specific name).
- The table shows "No Available Data" even though matching records exist on earlier pages.
Expected behavior
The pagination should automatically reset to the first page when the data set is filtered or updated, especially when the current page no longer contains valid records.
Environment
- vue3-easy-data-table version: 1.5.47
- Vue version: 3.x
- Pagination mode: client-side
Suggestion
Automatically reset currentPage
to 1 whenever the items
prop changes and the current page exceeds the number of pages available.
faizaaulia
Metadata
Metadata
Assignees
Labels
No labels