From 697dc58a4a4c0cd759b49234ec77a6774e5266c1 Mon Sep 17 00:00:00 2001 From: Jude Hungerford Date: Mon, 21 Aug 2023 13:27:23 +1000 Subject: [PATCH] change .removeAttr('checked') to .prop('checked', false) to uncheck checkboxes in resetFields function (webform_civicrm_forms.js) --- js/webform_civicrm_forms.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/webform_civicrm_forms.js b/js/webform_civicrm_forms.js index bb2355913..caa15b58d 100644 --- a/js/webform_civicrm_forms.js +++ b/js/webform_civicrm_forms.js @@ -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'); }); } }