Radio group partial is fixed.

This commit is contained in:
Sevan Nerse
2019-12-14 10:03:41 +03:00
parent 349ed320dd
commit aad96e7814
22 changed files with 32 additions and 30 deletions

View File

@ -44,7 +44,7 @@ export default class Form {
if (type == 'radio') {
if (!this[name]) {
this[name] = form_element.getAttribute('value') || '';
this[name] = (form_element.getAttribute('value') ? 1 : 0) || 0;
}
} else if (type == 'checkbox') {
if (this[name]) {