Skip to content

Commit 3184e66

Browse files
authored
Merge pull request #760 from Firesphere/patch/fieldloop
[Bugfix] the each loop to propperly get the field passed in
2 parents 549498a + caab511 commit 3184e66

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

client/dist/js/userforms.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

client/src/bundles/UserForms.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -472,8 +472,8 @@ jQuery(document).ready(($) => {
472472
this.$el.validate(this.validationOptions);
473473

474474
// Ensure checkbox groups are validated correctly
475-
$('.optionset.requiredField input').each(() => {
476-
$(this).rules('add', {
475+
$('.optionset.requiredField input').each((a, field) => {
476+
$(field).rules('add', {
477477
required: true,
478478
});
479479
});

0 commit comments

Comments
 (0)