Skip to content

Commit

Permalink
fix inserting message when parent is false
Browse files Browse the repository at this point in the history
  • Loading branch information
zakrava authored and Milan Felix Šulc committed Sep 29, 2018
1 parent ad7ee46 commit 2a47371
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion live-form-validation.js
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ LiveForm.getMessageElement = function(el) {

var parentEl = this.getMessageParent(el);
if (parentEl) {
parentEl.appendChild(messageEl);
parentEl.insertBefore(messageEl, el.nextSibling);
}
}

Expand Down

0 comments on commit 2a47371

Please sign in to comment.