Fixed multi level dropdown menu active control ( #8669r8pbp )

This commit is contained in:
Cüneyt Şentürk 2023-03-29 09:59:02 +03:00
parent aedd9710c1
commit 57e9e81120

View File

@ -130,7 +130,7 @@ class Menu extends Presenter
{
$id = Str::slug($item->title);
return '<details class="relative">
return '<details class="relative" ' . $this->getActiveStateOnChild($item) . '>
<summary class="' . $this->getClass($item). '" href="#navbar-' . $id . '" aria-controls="navbar-' . $id . '">
<div class="pb-2.5 flex items-center cursor-pointer text-purple text-sm '. $this->getActiveState($item) .'">
' . $this->getIcon($item) . '