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
+7 -3
+7 -3
View File
@@ -694,9 +694,13 @@ class FormBuilder
protected function placeholderOption($display, $selected)
{
$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>');
}