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 60744e8abd918a748cb32223bbb7ae6834727b3b
Showing with 2 additions and 0 deletions.
  1. +2 −0 src/event.js
@@ -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.
You can’t perform that action at this time.