From 6530cc61b04bdc5c19729b9d108efa2c18dd12c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bahad=C4=B1r=20Sofuo=C4=9Flu?= Date: Mon, 16 Jan 2023 13:54:20 +0300 Subject: [PATCH] JumpToPageInput fixed --- components/paginator/JumpToPageInput.vue | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/components/paginator/JumpToPageInput.vue b/components/paginator/JumpToPageInput.vue index 765837a97..3fe3e3874 100644 --- a/components/paginator/JumpToPageInput.vue +++ b/components/paginator/JumpToPageInput.vue @@ -24,11 +24,14 @@ export default { if (this.$refs.jtpInput && !this.$refs.jtpInput.focused) return; this.$emit('page-change', newValue - 1); + }, + page: { + handler(newValue) { + this.d_page = newValue; + }, + immediate: true } }, - mounted() { - this.d_page = this.page; - }, computed: { inputArialabel() { return this.$primevue.config.locale.aria ? this.$primevue.config.locale.aria.jumpToPageInputLabel : undefined;