[BUGFIX] scroll issue sidebar after init
This commit is contained in:
parent
8f5c0f1b05
commit
0bac385876
@ -103,7 +103,8 @@ function initSidebar() {
|
||||
if(triggerElement.dataset.trigger) {
|
||||
const sidebar = new Sidebar(triggerElement.dataset.trigger);
|
||||
|
||||
triggerElement.addEventListener('click', () => {
|
||||
triggerElement.addEventListener('click', (e) => {
|
||||
e.preventDefault();
|
||||
if(triggerElement.dataset.trigger === 'addTrip') {
|
||||
initTripSidebar(triggerElement);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user