mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-17 23:09:10 +08:00
fixed indentation and button group label bug
This commit is contained in:
@@ -32,8 +32,7 @@ use yii\helpers\Html;
|
||||
* 'url' => '#',
|
||||
* ),
|
||||
* ),
|
||||
* ),
|
||||
* ),
|
||||
* )),
|
||||
* ));
|
||||
*
|
||||
* // split button group using `items` dropdown configuration
|
||||
@@ -134,10 +133,12 @@ class Button extends Widget
|
||||
$splitButton = Html::tag('button', '<span class="caret"></span>', $this->buttonOptions);
|
||||
} else {
|
||||
$tag = 'a';
|
||||
$label .= ' <span class="caret"></span>';
|
||||
$options = $this->buttonOptions;
|
||||
if (!isset($options['href'])) {
|
||||
$options['href'] = '#';
|
||||
}
|
||||
$this->addCssClass($options, 'dropdown-toggle');
|
||||
$options['data-toggle'] = 'dropdown';
|
||||
}
|
||||
return Html::tag($tag, $label, $options) . "\n" . $splitButton;
|
||||
|
||||
Reference in New Issue
Block a user