Browse Source

Merge branch 'master' of https://github.com/cbxp/Semantic-UI into next

pull/4731/merge
Jack Lukic 7 years ago
parent
commit
dcd5bf6e88
1 changed files with 1 additions and 1 deletions
  1. 2
      src/definitions/behaviors/form.js

2
src/definitions/behaviors/form.js

@ -338,7 +338,7 @@ $.fn.form = function(parameters) {
$fieldGroup = $field.closest($group),
validationRules = module.get.validation($field)
;
if(settings.on == 'change' || ( $fieldGroup.hasClass(className.error) && settings.revalidate) ) {
if(validationRules && (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));

Loading…
Cancel
Save