Fix how radio 'checked' properties are set.
This commit is contained in:
@@ -71,9 +71,9 @@ class Field {
|
||||
(this._inputs as HTMLInputElement[])
|
||||
.forEach(input => {
|
||||
if (input.value === val) {
|
||||
input.setAttribute('checked', '');
|
||||
input.checked = true;
|
||||
} else {
|
||||
input.removeAttribute('checked');
|
||||
input.checked = false;
|
||||
}
|
||||
});
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user