Don't scroll to main section on initial page load
This commit is contained in:
@@ -81,10 +81,12 @@
|
|||||||
}, 'json');
|
}, 'json');
|
||||||
|
|
||||||
},
|
},
|
||||||
loadDatesView () {
|
loadDatesView (scroll = true) {
|
||||||
this.loadDates();
|
this.loadDates();
|
||||||
this.activeSection = 'dates';
|
this.activeSection = 'dates';
|
||||||
this.scrollToMain();
|
if (scroll) {
|
||||||
|
this.scrollToMain();
|
||||||
|
}
|
||||||
},
|
},
|
||||||
loadPriceTable (dateUid) {
|
loadPriceTable (dateUid) {
|
||||||
this.loading = true;
|
this.loading = true;
|
||||||
@@ -137,7 +139,7 @@
|
|||||||
if (this.hotelFirst) {
|
if (this.hotelFirst) {
|
||||||
this.showHtml('hotel', false);
|
this.showHtml('hotel', false);
|
||||||
} else {
|
} else {
|
||||||
this.loadDatesView();
|
this.loadDatesView(false);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user