Skip to content

Lack of pagination on a filterable table breaks view #1524

@reiokyu

Description

@reiokyu

Overview of the problem

Oruga version: [0.12.5]
Vuejs version: [3.5.25]
OS/Browser: Windows/Chrome

Description

We'd like to be able to make the pagination conditional based on the number of entries in a filterable table.
What happens currently is that after applying and removing a filter to a table with less items than the conditional the view will be empty.

Expected behavior

That the table would be returned to its original view after the filter was removed.

Actual behavior

I was met with a blank screen as the hidden status seemed to not get properly lifted if there were no matches. If there were matches then only those matches would be visible after removing the input from the filter.

Steps to reproduce

Example A

  1. In filterable.vue replace the <o-table :data="data" paginated per-page="5"> with <o-table :data="data">
  2. Type x into the input field of first name
  3. Clear the input field

The resulting screen looks like this:

Image

Example B
2. Type j into the input field of first name
3. Clear the input field

The resulting screen looks like this:

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions