Radio group partial is fixed.
This commit is contained in:
2
resources/assets/js/plugins/form.js
vendored
2
resources/assets/js/plugins/form.js
vendored
@ -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]) {
|
||||
|
Reference in New Issue
Block a user