From c289e28ef1d3ce4e47ebc940ce37e28d15b45a0c Mon Sep 17 00:00:00 2001 From: Natanael Rodriguez Ramos Date: Tue, 23 Apr 2024 13:53:43 +0100 Subject: [PATCH] fix: Removed scroll saved position --- .../ivpn-v3/assets/js/components/SelectPaymentMethod.vue | 8 -------- src/themes/ivpn-v3/assets/js/router/index.js | 6 +----- src/themes/ivpn-v3/assets/js/views/Account/AddFunds.vue | 9 ++------- 3 files changed, 3 insertions(+), 20 deletions(-) diff --git a/src/themes/ivpn-v3/assets/js/components/SelectPaymentMethod.vue b/src/themes/ivpn-v3/assets/js/components/SelectPaymentMethod.vue index c980e40cf..f7d99d1cc 100644 --- a/src/themes/ivpn-v3/assets/js/components/SelectPaymentMethod.vue +++ b/src/themes/ivpn-v3/assets/js/components/SelectPaymentMethod.vue @@ -23,7 +23,6 @@ tag="button" class="btn btn-solid pay-button" :to="{ name: 'add-funds-cc', params: { price: price.id } }" - @click.native="scrollToTop" >
Credit Card @@ -32,7 +31,6 @@ tag="button" class="btn btn-solid pay-button" :to="{ name: 'add-funds-paypal', params: { price: price.id } }" - @click.native="scrollToTop" >
PayPal @@ -41,7 +39,6 @@ tag="button" class="btn btn-solid pay-button" :to="{ name: 'add-funds-bitcoin', params: { price: price.id } }" - @click.native="scrollToTop" >
Bitcoin @@ -50,7 +47,6 @@ tag="button" class="btn btn-solid pay-button" :to="{ name: 'add-funds-monero', params: { price: price.id } }" - @click.native="scrollToTop" >
Monero @@ -59,7 +55,6 @@ tag="button" class="btn btn-solid pay-button" :to="{ name: 'add-funds-cash', params: { price: price.id } }" - @click.native="scrollToTop" >
Cash @@ -118,9 +113,6 @@ export default { toggleMoreOptions() { this.more = !this.more; }, - scrollToTop() { - window.scrollTo(0,0); - }, }, }; diff --git a/src/themes/ivpn-v3/assets/js/router/index.js b/src/themes/ivpn-v3/assets/js/router/index.js index db6acd98c..dd916c4b7 100644 --- a/src/themes/ivpn-v3/assets/js/router/index.js +++ b/src/themes/ivpn-v3/assets/js/router/index.js @@ -315,11 +315,7 @@ const router = createRouter({ routes, store, scrollBehavior(to, from, savedPosition) { - if (savedPosition) { - return savedPosition - } else { - return { x: 0, y: 0 } - } + return { x: 0, y: 0 } } }) diff --git a/src/themes/ivpn-v3/assets/js/views/Account/AddFunds.vue b/src/themes/ivpn-v3/assets/js/views/Account/AddFunds.vue index 13f938935..523e4b4f3 100644 --- a/src/themes/ivpn-v3/assets/js/views/Account/AddFunds.vue +++ b/src/themes/ivpn-v3/assets/js/views/Account/AddFunds.vue @@ -1,10 +1,10 @@