Skip to content

Paginator in Table with multiple tables in separate tabs not working #9094

@satinder711

Description

@satinder711

Bug, feature request, or proposal:

I am using a Material tab control. I have 2 tabs, Active, Inactive.
In both of the tabs, i have a material table with separate datasource and separate paginator.

Pagination is working on first (Active) tab only but not on 2nd tab (Inactive)

Here is my application.

https://angular-wnhmhd-o6pq3b.stackblitz.io/

https://stackblitz.com/edit/angular-wnhmhd-o6pq3b?file=app/table-pagination-example.html

What is the expected behavior?

Because both the tables have separate data source and separate paginator. Hence paging should work
on both

What is the current behavior?

on first tab. Paging working fine. On second tab, paging is not working.

What are the steps to reproduce?

Providing a StackBlitz/Plunker (or similar) is the best way to get the team to see your issue.

Plunker starter (using on @master): https://goo.gl/uDmqyY

StackBlitz starter (using latest npm release): https://goo.gl/wwnhMV

https://stackblitz.com/edit/angular-wnhmhd-o6pq3b?file=app/table-pagination-example.html

What is the use-case or motivation for changing an existing behavior?

Which versions of Angular, Material, OS, TypeScript, browsers are affected?

Is there anything else we should know?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions