Skip to content

Commit fe92073

Browse files
author
NeedToSet
committed
Fixes #17 v.isFieldValid or validateForm causing error
Signed-off-by: DotnetShadow <296247+dotnetshadow@users.noreply.github.com>
1 parent 0d19f88 commit fe92073

6 files changed

Lines changed: 6 additions & 16 deletions

File tree

dist/aspnet-validation.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/aspnet-validation.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/aspnet-validation.min.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -628,7 +628,7 @@ export class ValidationService {
628628
*/
629629
private shouldValidate(e: Event) {
630630
// Skip client-side validation if the form has been submitted via a button that has the "formnovalidate" attribute.
631-
return !(e['submitter'] && e['submitter']['formNoValidate']);
631+
return !(e !== null && e['submitter'] && e['submitter']['formNoValidate']);
632632
}
633633

634634
/**

yarn.lock

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -908,11 +908,6 @@
908908
"resolved" "https://registry.npmjs.org/figgy-pudding/-/figgy-pudding-3.5.2.tgz"
909909
"version" "3.5.2"
910910

911-
"file-uri-to-path@1.0.0":
912-
"integrity" "sha512-0Zt+s3L7Vf1biwWZ29aARiVYLx7iMGnEUl9x33fbB/j3jR81u/O2LbqK+Bm1CDSNDKVtJ/YjwY7TUd5SkeLQLw=="
913-
"resolved" "https://registry.npmjs.org/file-uri-to-path/-/file-uri-to-path-1.0.0.tgz"
914-
"version" "1.0.0"
915-
916911
"fill-range@^4.0.0":
917912
"integrity" "sha1-1USBHUKPmOsGpj3EAtJAPDKMOPc="
918913
"resolved" "https://registry.npmjs.org/fill-range/-/fill-range-4.0.0.tgz"
@@ -999,11 +994,6 @@
999994
"resolved" "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz"
1000995
"version" "1.0.0"
1001996

1002-
"fsevents@~2.1.2":
1003-
"integrity" "sha512-Auw9a4AxqWpa9GUfj370BMPzzyncfBABW8Mab7BGWBYDj4Isgq+cDKtx0i6u9jcX9pQDnswsaaOTgTmA5pEjuQ=="
1004-
"resolved" "https://registry.npmjs.org/fsevents/-/fsevents-2.1.3.tgz"
1005-
"version" "2.1.3"
1006-
1007997
"get-caller-file@^2.0.1":
1008998
"integrity" "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg=="
1009999
"resolved" "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz"

0 commit comments

Comments
 (0)