forked from Ruderverein-Donau-Linz/rowt
[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) => {
|
triggerElement.addEventListener('click', (e) => {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
if(triggerElement.dataset.trigger === 'addTrip') {
|
if(triggerElement.dataset.trigger === 'addTrip' && !sidebar.isOpen) {
|
||||||
initTripSidebar(triggerElement);
|
initTripSidebar(triggerElement);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user