Skip to content

Commit 4171069

Browse files
authored
Merge pull request #178 from HalitTalha/v14_migration
Pagination related bug fix
2 parents 4c628f1 + 52a0592 commit 4171069

File tree

4 files changed

+5
-93
lines changed

4 files changed

+5
-93
lines changed

package-lock.json

Lines changed: 3 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

projects/cdk-table-exporter/package-lock.json

Lines changed: 0 additions & 89 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

projects/mat-table-exporter/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "mat-table-exporter",
3-
"version": "14.0.0",
3+
"version": "14.0.1",
44
"license": "Apache-2.0",
55
"description": "Provides exporting support for @angular/material tables",
66
"author": "Halit Talha Türe",

projects/mat-table-exporter/src/lib/mat-table-exporter.directive.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ export class MatTableExporterDirective extends CdkTableExporter implements After
3333
* MatTable implementation of getPageCount
3434
*/
3535
public getPageCount(): number {
36-
return this.getPaginator()?.lastPage() ?? 1;
36+
return this.getPaginator()?.length ?? 1;
3737
}
3838

3939
/**

0 commit comments

Comments
 (0)