Skip to content

Commit

Permalink
Bump version to 0.8.16
Browse files Browse the repository at this point in the history
  • Loading branch information
haacked committed Sep 13, 2023
1 parent 6dd5954 commit ed09a05
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 5 deletions.
5 changes: 5 additions & 0 deletions dist/aspnet-validation.js
Original file line number Diff line number Diff line change
Expand Up @@ -703,6 +703,11 @@ var ValidationService = /** @class */ (function () {
// we could use 'matches', but that's newer than querySelectorAll so we'll keep it simple and compatible.
forms.push(root);
}
// If root is the descendant of a form, we want to include that form too.
var containingForm = (root instanceof Element) ? root.closest('form') : null;
if (containingForm) {
forms.push(containingForm);
}
for (var _a = 0, forms_1 = forms; _a < forms_1.length; _a++) {
var form = forms_1[_a];
var validationMessageElements_3 = Array.from(form.querySelectorAll('[data-valmsg-for]'));
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.15",
"version": "0.8.16",
"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 ed09a05

Please sign in to comment.