Set event.LiveFired to undefined in specialSubmit handler so that click events bound before the submit won't prevent the submit to fire. Fixes #6359

This commit is contained in:
David Petersen 2010-09-30 13:46:36 -04:00
parent cb811c04b0
commit 60744e8abd

View file

@ -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 );
}
});