Commit 0497ba4c by Qiang Xue

Fixes #6335

parent 3d308bee
...@@ -171,7 +171,7 @@ class Nav extends Widget ...@@ -171,7 +171,7 @@ class Nav extends Widget
if ($this->activateItems) { if ($this->activateItems) {
$items = $this->isChildActive($items, $active); $items = $this->isChildActive($items, $active);
} }
$items = $this->renderDropdown($items); $items = $this->renderDropdown($items, $item);
} }
} }
...@@ -186,10 +186,11 @@ class Nav extends Widget ...@@ -186,10 +186,11 @@ class Nav extends Widget
* Renders the given items as a dropdown. * Renders the given items as a dropdown.
* This method is called to create sub-menus. * This method is called to create sub-menus.
* @param array $items the given items. Please refer to [[Dropdown::items]] for the array structure. * @param array $items the given items. Please refer to [[Dropdown::items]] for the array structure.
* @param array $parentItem the parent item information. Please refer to [[items]] for the structure of this array.
* @return string the rendering result. * @return string the rendering result.
* @since 2.0.1 * @since 2.0.1
*/ */
protected function renderDropdown($items) protected function renderDropdown($items, $parentItem)
{ {
return Dropdown::widget([ return Dropdown::widget([
'items' => $items, 'items' => $items,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment