diff --git a/src/UI/Actions/Controls/Dropdown.php b/src/UI/Actions/Controls/Dropdown.php index 7d61482..3dbd2a3 100644 --- a/src/UI/Actions/Controls/Dropdown.php +++ b/src/UI/Actions/Controls/Dropdown.php @@ -60,6 +60,10 @@ public function create(): Html $element->setClass('dropdown-item'); } + if ($action->hasClass('active')) { + $element->addClass('active'); + } + if ($action->hasClass('ajax')) { $element->addClass('ajax'); }