Don't scroll to main section on initial page load
This commit is contained in:
1 parent
cc7138bbb7
commit
501df008bf
1 file changed
+5
-3
@@ -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);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user