Skip to content

Commit e084bdc

Browse files
d3radicatedmarcosmoura
authored andcommitted
Fix subtotal not updating (vuematerial#625)
1 parent f8868e6 commit e084bdc

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/components/mdTable/mdTablePagination.vue

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,9 @@
5454
},
5555
watch: {
5656
mdTotal(val) {
57+
const sub = this.currentPage * this.currentSize;
58+
59+
this.subTotal = sub > val ? val : sub;
5760
this.totalItems = isNaN(val) ? Number.MAX_SAFE_INTEGER : parseInt(val, 10);
5861
},
5962
mdSize(val) {

0 commit comments

Comments
 (0)