Skip to content

Commit bdee564

Browse files
Reset form event after validation to allow manual form submission
1 parent 0fd656e commit bdee564

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/validator/validator.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -510,6 +510,9 @@
510510
if (!self.checkValidity(null, e)) {
511511
return e.preventDefault();
512512
}
513+
// Reset event type and target
514+
e.target = form;
515+
e.type = conf.formEvent;
513516
});
514517
}
515518

0 commit comments

Comments
 (0)