Skip to content

Commit 1817c80

Browse files
committed
fix: sync initial pagination only if pagination property is used
Sync initial pagination in beforeMount() instead of created()
1 parent 1b26ea9 commit 1817c80

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/component/QIconPicker.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,10 @@ export default Vue.extend({
3030
}
3131
},
3232

33-
created () {
34-
this.$emit('update:pagination', { ...this.computedPagination })
33+
beforeMount () {
34+
if (this.pagination) {
35+
this.$emit('update:pagination', { ...this.computedPagination })
36+
}
3537
},
3638

3739
mounted () {

0 commit comments

Comments
 (0)