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
+7
-3
+7
-3
@@ -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>');
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user