From 14c09f022ddfd0ffe74d8668ad88eb967b8145d5 Mon Sep 17 00:00:00 2001 From: Qiang Xue Date: Tue, 2 Dec 2014 13:33:48 -0500 Subject: [PATCH] Fixes #6335 --- Nav.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Nav.php b/Nav.php index ab35ce0..45d5c98 100644 --- a/Nav.php +++ b/Nav.php @@ -171,7 +171,7 @@ class Nav extends Widget if ($this->activateItems) { $items = $this->isChildActive($items, $active); } - $items = $this->renderDropdown($items); + $items = $this->renderDropdown($items, $item); } } @@ -186,10 +186,11 @@ class Nav extends Widget * Renders the given items as a dropdown. * 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 $parentItem the parent item information. Please refer to [[items]] for the structure of this array. * @return string the rendering result. * @since 2.0.1 */ - protected function renderDropdown($items) + protected function renderDropdown($items, $parentItem) { return Dropdown::widget([ 'items' => $items,