Don't scroll to main section on initial page load
This commit is contained in:
@@ -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