[BUGFIX] fill sidebar event triggered twice
This commit is contained in:
parent
276e2fae88
commit
b926605ab6
@ -105,7 +105,7 @@ function initSidebar() {
|
||||
|
||||
triggerElement.addEventListener('click', (e) => {
|
||||
e.preventDefault();
|
||||
if(triggerElement.dataset.trigger === 'addTrip') {
|
||||
if(triggerElement.dataset.trigger === 'addTrip' && !sidebar.isOpen) {
|
||||
initTripSidebar(triggerElement);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user