From 60744e8abd918a748cb32223bbb7ae6834727b3b Mon Sep 17 00:00:00 2001 From: David Petersen Date: Thu, 30 Sep 2010 13:46:36 -0400 Subject: [PATCH] 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 --- src/event.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/event.js b/src/event.js index 5829948e6..d62d2291c 100644 --- a/src/event.js +++ b/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 ); } }); -- 2.39.5