File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " aspnet-client-validation" ,
3
- "version" : " 0.1.0 " ,
3
+ "version" : " 0.1.1 " ,
4
4
"description" : " Enables ASP.NET MVC client-side validation, without jQuery!" ,
5
5
"main" : " dist/aspnet-validation.js" ,
6
6
"style" : " dist/aspnet-validation.css" ,
Original file line number Diff line number Diff line change @@ -627,19 +627,19 @@ export class ValidationService {
627
627
return ;
628
628
}
629
629
630
- let isProgrammaticValidate = ! e ;
631
- if ( ! isProgrammaticValidate ) {
632
- e . preventDefault ( ) ;
633
- }
634
630
validate . then ( success => {
631
+ let isProgrammaticValidate = ! e ;
635
632
if ( success ) {
636
633
if ( isProgrammaticValidate ) {
637
634
callback ( true ) ;
638
635
return ;
639
636
}
640
- form . submit ( ) ;
641
637
return ;
642
638
}
639
+ else {
640
+ e . preventDefault ( ) ;
641
+ e . stopImmediatePropagation ( ) ;
642
+ }
643
643
if ( isProgrammaticValidate ) {
644
644
callback ( false ) ;
645
645
}
You can’t perform that action at this time.
0 commit comments