Skip to content

Commit

Permalink
Bump to v0.9.0
Browse files Browse the repository at this point in the history
  • Loading branch information
haacked committed Oct 19, 2023
1 parent df3389c commit 4956e54
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 11 deletions.
9 changes: 3 additions & 6 deletions dist/aspnet-validation.js
Original file line number Diff line number Diff line change
Expand Up @@ -1002,16 +1002,13 @@ var ValidationService = /** @class */ (function () {
});
}, _this.debounce);
};
var isDropdown = input.tagName.toLowerCase() === 'select';
var validateEvent = input.dataset.valEvent;
if (isDropdown) {
input.addEventListener('change', cb);
}
else if (validateEvent) {
if (validateEvent) {
input.addEventListener(validateEvent, cb);
}
else {
input.addEventListener('input', cb);
var eventType = input instanceof HTMLSelectElement ? 'change' : 'input';
input.addEventListener(eventType, cb);
}
this.inputEvents[uid] = 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.16",
"version": "0.9.0",
"description": "Enables ASP.NET MVC client-side validation, without jQuery!",
"main": "dist/aspnet-validation.js",
"style": "dist/aspnet-validation.css",
Expand Down

0 comments on commit 4956e54

Please sign in to comment.