You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In our tests, we often get this error: Uncaught TypeError: Cannot create property 'identifier' on boolean 'false'
From this code:
field: function(field, fieldName) {
...
if(!field.identifier) {
module.debug('Using field name as identifier', identifier);
field.identifier = identifier;
}
This happens when there are no validation rules defined and function argument field gets the value false. Most definitely, this condition should be checked.
change: function(event) {
var
$field = $(this),
$fieldGroup = $field.closest($group),
validationRules = module.get.validation($field) // FALSE RETURNED FROM HERE
;
if(settings.on == 'change' || ( $fieldGroup.hasClass(className.error) && settings.revalidate) ) {
clearTimeout(module.timer);
module.timer = setTimeout(function() {
module.debug('Revalidating field', $field, module.get.validation($field));
module.validate.field( validationRules ); // FALSE PASSED HERE
}, settings.delay);
}
}
The text was updated successfully, but these errors were encountered:
jlukic
changed the title
JS error when revalidating inputs without defined validation rules
[Form] JS error when revalidating inputs without defined validation rules
Feb 20, 2017
jlukic
changed the title
[Form] JS error when revalidating inputs without defined validation rules
[Form Validation] JS error when revalidating inputs without defined validation rules
Feb 20, 2017
In our tests, we often get this error:
Uncaught TypeError: Cannot create property 'identifier' on boolean 'false'
From this code:
This happens when there are no validation rules defined and function argument
field
gets the valuefalse
. Most definitely, this condition should be checked.The text was updated successfully, but these errors were encountered: