Skip to content

Commit d7394e3

Browse files
authored
fix(b-pagination): don't set initial page count twice (#6200)
1 parent 6dcd233 commit d7394e3

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/components/pagination/pagination.js

+1-5
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@ export const BPagination = /*#__PURE__*/ Vue.extend({
4949
const result = mathCeil(sanitizeTotalRows(this.totalRows) / sanitizePerPage(this.perPage))
5050
return result < 1 ? 1 : result
5151
},
52+
// Used for watching changes to `perPage` and `numberOfPages`
5253
pageSizeNumberOfPages() {
53-
// Used for watching changes to `perPage` and `numberOfPages`
5454
return {
5555
perPage: sanitizePerPage(this.perPage),
5656
totalRows: sanitizeTotalRows(this.totalRows),
@@ -91,10 +91,6 @@ export const BPagination = /*#__PURE__*/ Vue.extend({
9191
})
9292
}
9393
},
94-
mounted() {
95-
// Set the initial page count
96-
this.localNumberOfPages = this.numberOfPages
97-
},
9894
methods: {
9995
// These methods are used by the render function
10096
onClick(event, pageNumber) {

0 commit comments

Comments
 (0)