mirror of
				https://github.com/kevinveenbirkenbach/homepage.veen.world.git
				synced 2025-10-31 15:39:02 +00:00 
			
		
		
		
	Removed link opening bug
This commit is contained in:
		| @@ -25,7 +25,6 @@ document.addEventListener('DOMContentLoaded', () => { | |||||||
|  |  | ||||||
|       // Öffnen und Position anpassen beim Klicken |       // Öffnen und Position anpassen beim Klicken | ||||||
|       item.addEventListener('click', (e) => { |       item.addEventListener('click', (e) => { | ||||||
|         e.preventDefault(); // Verhindert die Standardaktion |  | ||||||
|         e.stopPropagation(); // Verhindert das Schließen von Menüs bei Klick |         e.stopPropagation(); // Verhindert das Schließen von Menüs bei Klick | ||||||
|         if (item.classList.contains('open')) { |         if (item.classList.contains('open')) { | ||||||
|           closeMenu(item); |           closeMenu(item); | ||||||
|   | |||||||
| @@ -11,7 +11,7 @@ | |||||||
|     {% for children in children %} |     {% for children in children %} | ||||||
|         {% if children.children %} |         {% if children.children %} | ||||||
|             <li class="dropdown-submenu position-relative"> |             <li class="dropdown-submenu position-relative"> | ||||||
|                 <a class="dropdown-item dropdown-toggle" href="#" title="{{ children.description }}"> |                 <a class="dropdown-item dropdown-toggle" title="{{ children.description }}"> | ||||||
|                     {{ render_icon_and_name(children) }} |                     {{ render_icon_and_name(children) }} | ||||||
|                 </a> |                 </a> | ||||||
|                 <ul class="dropdown-menu"> |                 <ul class="dropdown-menu"> | ||||||
| @@ -53,7 +53,7 @@ | |||||||
|                     {% else %} |                     {% else %} | ||||||
|                         <!-- Dropdown Menu --> |                         <!-- Dropdown Menu --> | ||||||
|                         <li class="nav-item dropdown"> |                         <li class="nav-item dropdown"> | ||||||
|                             <a class="nav-link dropdown-toggle" href="#" id="navbarDropdown{{ loop.index }}" role="button" data-bs-toggle="dropdown" data-bs-display="dynamic" aria-expanded="false"> |                             <a class="nav-link dropdown-toggle" id="navbarDropdown{{ loop.index }}" role="button" data-bs-toggle="dropdown" data-bs-display="dynamic" aria-expanded="false"> | ||||||
|                                 {% if item.icon is defined and item.icon.class is defined %} |                                 {% if item.icon is defined and item.icon.class is defined %} | ||||||
|                                     {{ render_icon_and_name(item) }} |                                     {{ render_icon_and_name(item) }} | ||||||
|                                 {% else %} |                                 {% else %} | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user