Skip to content
Permalink
Browse files
fix(b-pagination): don't set initial page count twice (#6200)
  • Loading branch information
jacobmllr95 committed Dec 15, 2020
1 parent 6dcd233 commit d7394e3
Showing 1 changed file with 1 addition and 5 deletions.
@@ -49,8 +49,8 @@ export const BPagination = /*#__PURE__*/ Vue.extend({
const result = mathCeil(sanitizeTotalRows(this.totalRows) / sanitizePerPage(this.perPage))
return result < 1 ? 1 : result
},
// Used for watching changes to `perPage` and `numberOfPages`
pageSizeNumberOfPages() {
// Used for watching changes to `perPage` and `numberOfPages`
return {
perPage: sanitizePerPage(this.perPage),
totalRows: sanitizeTotalRows(this.totalRows),
@@ -91,10 +91,6 @@ export const BPagination = /*#__PURE__*/ Vue.extend({
})
}
},
mounted() {
// Set the initial page count
this.localNumberOfPages = this.numberOfPages
},
methods: {
// These methods are used by the render function
onClick(event, pageNumber) {

0 comments on commit d7394e3

Please sign in to comment.