From c60024fa108eeaf56b0cf59519ed886a866d7b8c Mon Sep 17 00:00:00 2001 From: Alexander Makarov Date: Fri, 18 Jul 2014 19:03:20 +0400 Subject: [PATCH] Better fix for #3443 --- Dropdown.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Dropdown.php b/Dropdown.php index e68cfd7..10fe5c3 100644 --- a/Dropdown.php +++ b/Dropdown.php @@ -87,10 +87,8 @@ class Dropdown extends Widget $linkOptions['tabindex'] = '-1'; $content = Html::a($label, ArrayHelper::getValue($item, 'url', '#'), $linkOptions); if (!empty($item['items'])) { - $content .= static::widget([ - 'items' => $item['items'], - 'encodeLabels' => $this->encodeLabels, - ]); + unset($this->options['id']); + $this->renderItems($item['items']); Html::addCssClass($options, 'dropdown-submenu'); } $lines[] = Html::tag('li', $content, $options);