Skip to content

Commit

Permalink
Merge pull request #902 from AsylumSeekersCentre/6.x_fix_uncheck_chec…
Browse files Browse the repository at this point in the history
…kboxes_js

change .removeAttr('checked') to .prop('checked', false) in resetFields
  • Loading branch information
jitendrapurohit authored Sep 3, 2023
2 parents fcaaba0 + 697dc58 commit 7878cc2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/webform_civicrm_forms.js
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ var wfCivi = (function (D, $, drupalSettings, once) {
});
$('.civicrm-remove-file', this).click();
$('input:checkbox, input:radio', this).each(function() {
$(this).removeAttr('checked').trigger('change', 'webform_civicrm:reset');
$(this).prop('checked', false).trigger('change', 'webform_civicrm:reset');
});
}
}
Expand Down

0 comments on commit 7878cc2

Please sign in to comment.