Fix how radio 'checked' properties are set.

This commit is contained in:
Austin Smith
2025-11-19 08:39:27 -05:00
parent 4d1a652e84
commit a3b9ee2f99
4 changed files with 12 additions and 7 deletions

View File

@@ -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;