docs(table): fix example not correctly changing pages when filtering (#11119)

This commit is contained in:
Matthew Kendrick Co
2018-05-10 02:41:04 +08:00
committed by Jeremy Elbourn
parent d4cfea1538
commit cb00e1b664
@@ -34,6 +34,9 @@ export class TableOverviewExample {
filterValue = filterValue.trim(); // Remove whitespace
filterValue = filterValue.toLowerCase(); // Datasource defaults to lowercase matches
this.dataSource.filter = filterValue;
if (this.dataSource.paginator) {
this.dataSource.paginator.firstPage();
}
}
}