diff --git a/Dropdown.php b/Dropdown.php index a69f752..8ad7073 100644 --- a/Dropdown.php +++ b/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);