Commit 66751760 by Alexander Makarov

Better fix for #3443

parent f2b0d8c2
......@@ -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);
......
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