Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 1 addition & 5 deletions src/components/pagination/pagination.js
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down Expand Up @@ -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) {
Expand Down