Don't collapse subitems in active path of mobile navigation
This commit is contained in:
@@ -95,7 +95,7 @@
|
||||
<f:if condition="{navitem.children}">
|
||||
<f:then>
|
||||
<li data-controller="collapse"
|
||||
data-collapse-collapsed-value="true">
|
||||
data-collapse-collapsed-value="{f:if(condition: navitem.active, then: 'false', else: 'true')}">
|
||||
<div class="flex items-center justify-between px-4 py-2 bg-ep-primary text-white">
|
||||
<a href="{navitem.link}"
|
||||
class="uppercase text-xl flex-1"
|
||||
@@ -136,7 +136,7 @@
|
||||
<f:then>
|
||||
<li class="py-2"
|
||||
data-controller="collapse"
|
||||
data-collapse-collapsed-value="true">
|
||||
data-collapse-collapsed-value="{f:if(condition: subitem.active, then: 'false', else: 'true')}">
|
||||
<div class="flex items-center justify-between">
|
||||
<a href="{subitem.link}"
|
||||
class="flex-1"
|
||||
|
||||
Reference in New Issue
Block a user