From 9f143e39b4e0edb1e41743335c8ba4ef70c8fae5 Mon Sep 17 00:00:00 2001 From: Kevin Veen-Birkenbach Date: Wed, 15 Jan 2025 02:19:33 +0100 Subject: [PATCH] Removed link opening bug --- app/static/js/navigation.js | 1 - app/templates/moduls/navigation.html.j2 | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/app/static/js/navigation.js b/app/static/js/navigation.js index a9ddfe1..595989a 100644 --- a/app/static/js/navigation.js +++ b/app/static/js/navigation.js @@ -25,7 +25,6 @@ document.addEventListener('DOMContentLoaded', () => { // Öffnen und Position anpassen beim Klicken item.addEventListener('click', (e) => { - e.preventDefault(); // Verhindert die Standardaktion e.stopPropagation(); // Verhindert das Schließen von Menüs bei Klick if (item.classList.contains('open')) { closeMenu(item); diff --git a/app/templates/moduls/navigation.html.j2 b/app/templates/moduls/navigation.html.j2 index 672de73..3d5e079 100644 --- a/app/templates/moduls/navigation.html.j2 +++ b/app/templates/moduls/navigation.html.j2 @@ -11,7 +11,7 @@ {% for children in children %} {% if children.children %}