Skip to content

[Bug]: setDisplayPaginationDetailsDisabled is not respected when table is not paginated #2118

@leesherwood

Description

@leesherwood

What happened?

Hiding the Showing 1 to 10 of 25 results text via setDisplayPaginationDetailsDisabled() works fine, however when the table content isn't enough to need multiple pages the text Showing 8 results appears.

I would expect setDisplayPaginationDetailsDisabled to cover both instances, hence the bug report

How to reproduce the bug

  • Create a demo table with setDisplayPaginationDetailsDisabled()
  • Decrease (if needed) the perPage to have at least 2 pages, notice that the Showing... text does not show as expected
  • Increase the perPage so it's a single page table, notice now the Showing text does show.

You can also just apply a search to bring the page count down to 1.

Package Version

3.5.7

PHP Version

8.2.x

Laravel Version

11

With pagination - No "details" displayed
image

Without pagination - Details displayed
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions