Skip to content

Commit

Permalink
fix(form): support blur for dropdowns
Browse files Browse the repository at this point in the history
  • Loading branch information
lubber-de committed Nov 24, 2024
1 parent 173e95b commit 9297e1a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/definitions/behaviors/form.js
Original file line number Diff line number Diff line change
Expand Up @@ -473,7 +473,7 @@
validationRules = module.get.validation($field) || {},
identifier = module.get.identifier(validationRules, $field)
;
if (settings.on === 'change' || $field.prop('type') === 'hidden' || (!$module.hasClass(className.initial) && settings.revalidate)) {
if (settings.on === 'change' || (settings.on === 'blur' && $field.prop('type') === 'hidden') || (!$module.hasClass(className.initial) && settings.revalidate)) {
clearTimeout(module.timer);
module.timer = setTimeout(function () {
module.debug('Revalidating field', $field, validationRules);
Expand Down

0 comments on commit 9297e1a

Please sign in to comment.