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.
2 parents 81c0b41 + 15c31e1 commit 7f3a3ceCopy full SHA for 7f3a3ce
lib/web/mage/validation.js
@@ -1423,11 +1423,17 @@
1423
var errors = {},
1424
valid = true,
1425
validateConfig = {
1426
- errorElement: 'label'
+ errorElement: 'label',
1427
+ ignore: '.ignore-validate'
1428
},
1429
form, validator, classes;
1430
- element = $(element);
1431
+ element = $(element).not(validateConfig.ignore);
1432
+
1433
+ if (!element.length) {
1434
+ return true;
1435
+ }
1436
1437
form = element.get(0).form;
1438
validator = form ? $(form).data('validator') : null;
1439
0 commit comments