Skip to content

Commit 7f3a3ce

Browse files
Merge branch 'MAGETWO-52785' of github.com:magento-vanilla/magento2ce into PR
2 parents 81c0b41 + 15c31e1 commit 7f3a3ce

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

lib/web/mage/validation.js

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1423,11 +1423,17 @@
14231423
var errors = {},
14241424
valid = true,
14251425
validateConfig = {
1426-
errorElement: 'label'
1426+
errorElement: 'label',
1427+
ignore: '.ignore-validate'
14271428
},
14281429
form, validator, classes;
14291430

1430-
element = $(element);
1431+
element = $(element).not(validateConfig.ignore);
1432+
1433+
if (!element.length) {
1434+
return true;
1435+
}
1436+
14311437
form = element.get(0).form;
14321438
validator = form ? $(form).data('validator') : null;
14331439

0 commit comments

Comments
 (0)