mirror of
https://github.com/yiisoft/yii2.git
synced 2025-08-26 14:26:54 +08:00
Better fix for #3443
This commit is contained in:
@ -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);
|
||||
|
Reference in New Issue
Block a user