Browse Source

Better fix for #3443

tags/2.0.0-rc
Alexander Makarov 11 years ago
parent
commit
c60024fa10
  1. 6
      Dropdown.php

6
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);

Loading…
Cancel
Save