changed select placeholder to major browser standards

http://stackoverflow.com/a/8442831/1722248
This commit is contained in:
darthrevan13 authored and GitHub committed 2016-09-27 19:52:22 +03:00
1 parent e8ca58357c
commit 410943c5e1
1 file changed
+6 -2
+6 -2
View File
@@ -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>');
}