Skip to content

Commit

Permalink
add activeRoute param
Browse files Browse the repository at this point in the history
  • Loading branch information
yusronarif committed Nov 4, 2022
1 parent 8f99def commit dc4251e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/MenuItem.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public function resolve(): bool

public function isActive(): bool
{
if ($this->type == MenuType::Route) {
if ($this->type == MenuType::ROUTE) {
return $this->isActiveRoute($this->activeRoute ?? $this->name, $this->param);
}

Expand Down

0 comments on commit dc4251e

Please sign in to comment.