Commit 40d367bb by Aleksandr Zelenin Committed by Qiang Xue

add BootstrapPlugin::register() to Dropdown widget

parent 263684f3
...@@ -46,7 +46,6 @@ class Dropdown extends Widget ...@@ -46,7 +46,6 @@ class Dropdown extends Widget
*/ */
protected $_containerOptions = []; protected $_containerOptions = [];
/** /**
* Initializes the widget. * Initializes the widget.
* If you override this method, make sure you call the parent implementation first. * If you override this method, make sure you call the parent implementation first.
...@@ -64,6 +63,7 @@ class Dropdown extends Widget ...@@ -64,6 +63,7 @@ class Dropdown extends Widget
public function run() public function run()
{ {
echo $this->renderItems($this->items); echo $this->renderItems($this->items);
BootstrapPluginAsset::register($this->getView());
} }
/** /**
......
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