Browse Source

Fixes #3443: Fixed `yii\bootstrap\Nav` and `yii\bootstrap\Dropdown` were generating wrong ids for submenus

tags/2.0.0-rc
artur 10 years ago committed by Alexander Makarov
parent
commit
25f2364b09
  1. 4
      Dropdown.php

4
Dropdown.php

@ -87,7 +87,9 @@ class Dropdown extends Widget
$linkOptions['tabindex'] = '-1';
$content = Html::a($label, ArrayHelper::getValue($item, 'url', '#'), $linkOptions);
if (!empty($item['items'])) {
$content .= $this->renderItems($item['items']);
$content .= static::widget([
'items' => $item['items'],
]);
Html::addCssClass($options, 'dropdown-submenu');
}
$lines[] = Html::tag('li', $content, $options);

Loading…
Cancel
Save