Skip to content

Current Page #390

@GerardoIbarra

Description

@GerardoIbarra

When using v-model:current-page in combination with filtered data, the pagination does not reset correctly.

Steps to reproduce

  1. Navigate to a page other than the first one (e.g., page 3).
  2. Apply a filter that reduces the dataset (e.g., searching by a specific name).
  3. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions