mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
FIX OptionsetField returns valid HTML #4901
This commit is contained in:
parent
0b3b7ba134
commit
288c8a8b27
@ -102,4 +102,14 @@ class OptionsetField extends DropdownField {
|
||||
public function ExtraOptions() {
|
||||
return new ArrayList();
|
||||
}
|
||||
|
||||
public function getAttributes() {
|
||||
$attributes = parent::getAttributes();
|
||||
unset($attributes['name']);
|
||||
unset($attributes['required']);
|
||||
unset($attributes['role']);
|
||||
unset($attributes['aria-required']);
|
||||
|
||||
return $attributes;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user