Skip to content

Commit

Permalink
fixed empty dropdown
Browse files Browse the repository at this point in the history
  • Loading branch information
denisdulici committed Sep 21, 2019
1 parent 4687712 commit 8f2dd0c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/MenuItem.php
Original file line number Diff line number Diff line change
Expand Up @@ -327,6 +327,10 @@ public function getUrl()
return route($this->route[0], $this->route[1]);
}

if (empty($this->url)) {
return url("/#");
}

return url($this->url);
}

Expand Down

0 comments on commit 8f2dd0c

Please sign in to comment.