Skip to content

Commit

Permalink
fix(form): make a difference between value 0 and false for radio buttons
Browse files Browse the repository at this point in the history
A form gets radio values wrong, if one of them has a value of 0, but returns false instead
  • Loading branch information
lubber-de committed Feb 17, 2020
1 parent c2ce312 commit e3468c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/definitions/behaviors/form.js
Expand Up @@ -706,7 +706,7 @@ $.fn.form = function(parameters) {
}
else {
if(isRadio) {
if(values[name] === undefined || values[name] == false) {
if(values[name] === undefined || values[name] === false) {
values[name] = (isChecked)
? value || true
: false
Expand Down

0 comments on commit e3468c7

Please sign in to comment.