Skip to content

Commit

Permalink
Fixes issue with All in per page dropdown not staying selected (#684)
Browse files Browse the repository at this point in the history
* Fixes issue with All in per page dropdown not staying selected when total changes

Co-authored-by: Joe Martucci <[email protected]>
  • Loading branch information
jjmartucci and Joe Martucci authored May 18, 2020
1 parent 3225eb6 commit 4011ad0
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/components/VgtPagination.vue
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,14 @@ export default {
customRowsPerPageDropdown() {
this.handlePerPage();
},
total: {
handler(newValue, oldValue) {
if(this.rowsPerPageOptions.indexOf(this.currentPerPage) === -1) {
this.currentPerPage = newValue;
}
}
}
},
computed: {
Expand Down

0 comments on commit 4011ad0

Please sign in to comment.