We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 49ce4fe commit be6e98eCopy full SHA for be6e98e
src/main/jquery-plugins.js
@@ -137,7 +137,8 @@
137
var language = $.extend({}, $.formUtils.LANG, lang || {});
138
this.each(function() {
139
var $elem = $(this),
140
- formDefaultConfig = $elem.closest('form').get(0).validationConfig || {};
+ $closestForm = $elem.closest('form').get(0) || {},
141
+ formDefaultConfig = $closestForm.validationConfig || {};
142
143
$elem.one('validation', function(evt, isValid) {
144
if ( typeof cb === 'function' ) {
0 commit comments