changed select placeholder to major browser standards
http://stackoverflow.com/a/8442831/1722248
This commit is contained in:
1 parent
e8ca58357c
commit
410943c5e1
1 file changed
+6
-2
+6
-2
@@ -695,8 +695,12 @@ class FormBuilder
|
||||
{
|
||||
$selected = $this->getSelectedValue(null, $selected);
|
||||
|
||||
$options = compact('selected');
|
||||
$options['value'] = '';
|
||||
$options = [
|
||||
'selected' => $selected,
|
||||
'disabled' => 'disabled',
|
||||
'hidden' => 'hidden',
|
||||
'value' => ''
|
||||
];
|
||||
|
||||
return $this->toHtmlString('<option' . $this->html->attributes($options) . '>' . e($display) . '</option>');
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user