From 6ba55cd475cde4ab6360f19aa33a8d9c400380b3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bahad=C4=B1r=20Sofuo=C4=9Flu?= Date: Mon, 16 Jan 2023 14:51:32 +0300 Subject: [PATCH] Immediate removed for mounted event issue --- components/paginator/JumpToPageInput.vue | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/components/paginator/JumpToPageInput.vue b/components/paginator/JumpToPageInput.vue index 3fe3e3874..5f715da1c 100644 --- a/components/paginator/JumpToPageInput.vue +++ b/components/paginator/JumpToPageInput.vue @@ -16,20 +16,15 @@ export default { }, data() { return { - d_page: null + d_page: this.page }; }, watch: { d_page(newValue) { - if (this.$refs.jtpInput && !this.$refs.jtpInput.focused) return; - this.$emit('page-change', newValue - 1); }, - page: { - handler(newValue) { - this.d_page = newValue; - }, - immediate: true + page(newValue) { + this.d_page = newValue; } }, computed: {