Pre Merge pull request !74 from quezi/master

pull/74/MERGE
zhong 2018-09-18 17:51:00 +08:00
commit e458cca1a3
1 changed files with 3 additions and 3 deletions

View File

@ -213,7 +213,7 @@ class FormBuilder
if (!in_array($type, $this->skipValueTypes)) { if (!in_array($type, $this->skipValueTypes)) {
$value = $this->getValueAttribute($name, $value); $value = $this->getValueAttribute($name, $value);
$options['class'] = isset($options['class']) ? $options['class'] . ' form-control' : 'form-control'; $options['class'] = isset($options['class']) ? $options['class'] : 'form-control';
} }
$merge = compact('type', 'value', 'id'); $merge = compact('type', 'value', 'id');
@ -317,7 +317,7 @@ class FormBuilder
unset($options['size']); unset($options['size']);
$options['class'] = isset($options['class']) ? $options['class'] . ' form-control' : 'form-control'; $options['class'] = isset($options['class']) ? $options['class'] : 'form-control';
$options = $this->attributes($options); $options = $this->attributes($options);
return '<textarea' . $options . '>' . $this->escape($value) . '</textarea>'; return '<textarea' . $options . '>' . $this->escape($value) . '</textarea>';
@ -389,7 +389,7 @@ class FormBuilder
foreach ($list as $value => $display) { foreach ($list as $value => $display) {
$html[] = $this->getSelectOption($display, $value, $selected); $html[] = $this->getSelectOption($display, $value, $selected);
} }
$options['class'] = isset($options['class']) ? $options['class'] . ' form-control' : 'form-control'; $options['class'] = isset($options['class']) ? $options['class'] : 'form-control';
$options = $this->attributes($options); $options = $this->attributes($options);
$list = implode('', $html); $list = implode('', $html);