Immediate removed for mounted event issue

pull/3539/head
Bahadır Sofuoğlu 2023-01-16 14:51:32 +03:00
parent 6530cc61b0
commit 6ba55cd475
1 changed files with 3 additions and 8 deletions

View File

@ -16,20 +16,15 @@ export default {
}, },
data() { data() {
return { return {
d_page: null d_page: this.page
}; };
}, },
watch: { watch: {
d_page(newValue) { d_page(newValue) {
if (this.$refs.jtpInput && !this.$refs.jtpInput.focused) return;
this.$emit('page-change', newValue - 1); this.$emit('page-change', newValue - 1);
}, },
page: { page(newValue) {
handler(newValue) {
this.d_page = newValue; this.d_page = newValue;
},
immediate: true
} }
}, },
computed: { computed: {