We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
pages
number of pages
1 parent 4287ddf commit 88b95c6Copy full SHA for 88b95c6
src/components/pagination-nav/pagination-nav.js
@@ -107,10 +107,6 @@ export default Vue.extend({
107
},
108
created() {
109
this.setNumPages()
110
- // For SSR, assuming a page URL can be detected
111
- this.$nextTick(() => {
112
- this.guessCurrentPage()
113
- })
114
115
mounted() {
116
if (this.$router) {
@@ -131,6 +127,9 @@ export default Vue.extend({
131
127
} else {
132
128
this.localNumPages = sanitizeNumPages(this.numberOfPages)
133
129
}
130
+ this.$nextTick(() => {
+ this.guessCurrentPage()
+ })
134
135
onClick(pageNum, evt) {
136
// Dont do anything if clicking the current active page
0 commit comments