From 501df008bfbd0268eb7e9d0353dbe9ab4c7bca50 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bjo=CC=88rn=20Fromme?= Date: Sat, 22 Sep 2018 11:59:53 +0200 Subject: [PATCH] Don't scroll to main section on initial page load --- .../Private/Assets/js/components/ProductDetail.vue | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/web/typo3conf/ext/ep_theme/Resources/Private/Assets/js/components/ProductDetail.vue b/web/typo3conf/ext/ep_theme/Resources/Private/Assets/js/components/ProductDetail.vue index 16253346..563ccae1 100644 --- a/web/typo3conf/ext/ep_theme/Resources/Private/Assets/js/components/ProductDetail.vue +++ b/web/typo3conf/ext/ep_theme/Resources/Private/Assets/js/components/ProductDetail.vue @@ -81,10 +81,12 @@ }, 'json'); }, - loadDatesView () { + loadDatesView (scroll = true) { this.loadDates(); this.activeSection = 'dates'; - this.scrollToMain(); + if (scroll) { + this.scrollToMain(); + } }, loadPriceTable (dateUid) { this.loading = true; @@ -137,7 +139,7 @@ if (this.hotelFirst) { this.showHtml('hotel', false); } else { - this.loadDatesView(); + this.loadDatesView(false); } }); }