Skip to content

Commit

Permalink
Merge pull request #992 from creative-commoners/pulls/5.6/caught-in-t…
Browse files Browse the repository at this point in the history
…he-middlecolumn

FIX Place validation messages on .field if .middleColumn is missing
  • Loading branch information
emteknetnz authored Jul 24, 2020
2 parents de5a671 + 792fd82 commit bd494e1
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 24 deletions.
2 changes: 1 addition & 1 deletion client/dist/js/userforms.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion client/src/bundles/UserForms.js
Original file line number Diff line number Diff line change
Expand Up @@ -495,7 +495,7 @@ jQuery(document).ready(($) => {
error.addClass('message');

if (element.is(':radio') || element.parents('.checkboxset').length > 0) {
error.appendTo(element.closest('.middleColumn'));
error.appendTo(element.closest('.middleColumn, .field'));
} else if (element.parents('.checkbox').length > 0) {
error.appendTo(element.closest('.field'));
} else {
Expand Down
Loading

0 comments on commit bd494e1

Please sign in to comment.