From 91a1c9596233719f5fe508175f59b436919478de Mon Sep 17 00:00:00 2001 From: it3rmit Date: Tue, 6 May 2014 16:43:17 +0300 Subject: [PATCH 1/2] Fixing the issue #3292 This change fixes the issue #3292. The details were mentioned in the comments to the issue. --- extensions/bootstrap/ButtonDropdown.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/extensions/bootstrap/ButtonDropdown.php b/extensions/bootstrap/ButtonDropdown.php index dedf8db267..2324312441 100644 --- a/extensions/bootstrap/ButtonDropdown.php +++ b/extensions/bootstrap/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'); } From ea45113d0ff06a0613276993d18000a107c4c13b Mon Sep 17 00:00:00 2001 From: Alexander Makarov Date: Tue, 27 May 2014 14:07:05 +0400 Subject: [PATCH 2/2] Fixes #3292: Fixed dropdown widgets rendering incorrect HTML --- extensions/bootstrap/CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/extensions/bootstrap/CHANGELOG.md b/extensions/bootstrap/CHANGELOG.md index c7e7650d67..303bf869b0 100644 --- a/extensions/bootstrap/CHANGELOG.md +++ b/extensions/bootstrap/CHANGELOG.md @@ -4,6 +4,7 @@ Yii Framework 2 bootstrap extension Change Log 2.0.0-rc under development -------------------------- +- Bug #3292: Fixed dropdown widgets rendering incorrect HTML (it3rmit) - Chg #3036: Upgraded Twitter Bootstrap to 3.1.x (qiangxue)