Skip to content

Commit 7a5e2c3

Browse files
author
tom bertrand
committed
Fixed issue where formData was ignoring OPTIONAL values
1 parent 6072eda commit 7a5e2c3

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

dist/jquery.validation.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -453,6 +453,8 @@
453453

454454
validateOnce = false;
455455

456+
formData[inputName] = value;
457+
456458
if (validationArray) {
457459
validationArray = _api._splitValidation(validationArray);
458460
}
@@ -507,8 +509,6 @@
507509

508510
}
509511

510-
formData[inputName] = value;
511-
512512
return !errors[inputName] || errors[inputName] instanceof Array && errors[inputName].length === 0;
513513

514514
}

0 commit comments

Comments
 (0)