Skip to content

Commit

Permalink
Move active class to dropdown item
Browse files Browse the repository at this point in the history
  • Loading branch information
juniwalk authored Apr 12, 2024
1 parent 08191d9 commit 24e5fb7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/UI/Actions/Controls/Dropdown.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
}
Expand Down

0 comments on commit 24e5fb7

Please sign in to comment.