Skip to content
Snippets Groups Projects
Commit 575456a8 authored by JonGold's avatar JonGold Committed by mattwire
Browse files

fix regression on required checkbox fields

parent c42d2678
Branches
Tags
1 merge request!39fix regression on required checkbox fields
Pipeline #3451 skipped
......@@ -374,6 +374,9 @@
var name = $(this).attr('name');
$(this).attr('data-name', name);
$(this).attr('name', name.replace('[' + name.split('[').pop(), ''));
$(this).removeAttr('required');
$(this).removeClass('required');
$(this).removeAttr('aria-required');
});
// Default email validator accepts test@example but on test@example.org is valid (https://jqueryvalidation.org/jQuery.validator.methods/)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment