Skip to content
Permalink
Browse files
Set event.LiveFired to undefined in specialSubmit handler so that cli…
…ck events bound before the submit won't prevent the submit to fire. Fixes #6359
  • Loading branch information
petersendidit committed Sep 30, 2010
1 parent cb811c0 commit 60744e8
Showing 1 changed file with 2 additions and 0 deletions.
@@ -706,6 +706,7 @@ if ( !jQuery.support.submitBubbles ) {
var elem = e.target, type = elem.type;

if ( (type === "submit" || type === "image") && jQuery( elem ).closest("form").length ) {
e.liveFired = undefined;
return trigger( "submit", this, arguments );
}
});
@@ -714,6 +715,7 @@ if ( !jQuery.support.submitBubbles ) {
var elem = e.target, type = elem.type;

if ( (type === "text" || type === "password") && jQuery( elem ).closest("form").length && e.keyCode === 13 ) {
e.liveFired = undefined;
return trigger( "submit", this, arguments );
}
});

0 comments on commit 60744e8

Please sign in to comment.