diff --git a/ButtonDropdown.php b/ButtonDropdown.php index dedf8db..2324312 100644 --- a/ButtonDropdown.php +++ b/ButtonDropdown.php @@ -64,7 +64,10 @@ class ButtonDropdown extends Widget */ public function run() { - echo $this->renderButton() . "\n" . $this->renderDropdown(); + echo Html::beginTag('div', ['class' => 'btn-group']); + echo "\n" . $this->renderButton(); + echo "\n" . $this->renderDropdown(); + echo "\n" . Html::endTag('div'); $this->registerPlugin('button'); }