Skip to content

Commit

Permalink
Build 0.8.3
Browse files Browse the repository at this point in the history
  • Loading branch information
dahlbyk committed Feb 13, 2023
1 parent 0bbbfe1 commit 4c6e0c3
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 16 deletions.
12 changes: 11 additions & 1 deletion dist/aspnet-validation.js
Original file line number Diff line number Diff line change
Expand Up @@ -717,7 +717,12 @@ var ValidationService = /** @class */ (function () {
if (this.elementEvents[formUID]) {
return;
}
var validating = false;
var cb = function (e, callback) {
// Prevent recursion
if (validating) {
return;
}
if (!_this.shouldValidate(e)) {
return;
}
Expand All @@ -730,7 +735,10 @@ var ValidationService = /** @class */ (function () {
e.preventDefault();
e.stopImmediatePropagation();
}
validating = true;
_this.logger.log('Validating', form);
validate.then(function (success) {
_this.logger.log('Validated (success = %s)', success, form);
var isProgrammaticValidate = !e;
if (success) {
if (isProgrammaticValidate) {
Expand All @@ -756,7 +764,9 @@ var ValidationService = /** @class */ (function () {
_this.focusFirstInvalid(form);
}
}).catch(function (error) {
console.log(error);
_this.logger.log('Validation error', error);
}).finally(function () {
validating = false;
});
};
form.addEventListener('submit', cb);
Expand Down
2 changes: 1 addition & 1 deletion dist/aspnet-validation.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/aspnet-validation.min.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "aspnet-client-validation",
"version": "0.8.2",
"version": "0.8.3",
"description": "Enables ASP.NET MVC client-side validation, without jQuery!",
"main": "dist/aspnet-validation.js",
"style": "dist/aspnet-validation.css",
Expand Down
10 changes: 0 additions & 10 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -908,11 +908,6 @@
"resolved" "https://registry.npmjs.org/figgy-pudding/-/figgy-pudding-3.5.2.tgz"
"version" "3.5.2"

"[email protected]":
"integrity" "sha512-0Zt+s3L7Vf1biwWZ29aARiVYLx7iMGnEUl9x33fbB/j3jR81u/O2LbqK+Bm1CDSNDKVtJ/YjwY7TUd5SkeLQLw=="
"resolved" "https://registry.npmjs.org/file-uri-to-path/-/file-uri-to-path-1.0.0.tgz"
"version" "1.0.0"

"fill-range@^4.0.0":
"integrity" "sha1-1USBHUKPmOsGpj3EAtJAPDKMOPc="
"resolved" "https://registry.npmjs.org/fill-range/-/fill-range-4.0.0.tgz"
Expand Down Expand Up @@ -999,11 +994,6 @@
"resolved" "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz"
"version" "1.0.0"

"fsevents@~2.1.2":
"integrity" "sha512-Auw9a4AxqWpa9GUfj370BMPzzyncfBABW8Mab7BGWBYDj4Isgq+cDKtx0i6u9jcX9pQDnswsaaOTgTmA5pEjuQ=="
"resolved" "https://registry.npmjs.org/fsevents/-/fsevents-2.1.3.tgz"
"version" "2.1.3"

"get-caller-file@^2.0.1":
"integrity" "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg=="
"resolved" "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz"
Expand Down

0 comments on commit 4c6e0c3

Please sign in to comment.