aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDave Methvin <dave.methvin@gmail.com>2015-09-27 22:05:57 -0400
committerTimmy Willison <timmywillisn@gmail.com>2015-10-18 13:06:37 -0400
commitc82a6685bb964627e27008e298f93ea81218265b (patch)
treefd42787668ddeca7f180e741cde81315c727b280 /src
parent5db1e053098af747330044d5740e5379f2834402 (diff)
downloadjquery-c82a6685bb964627e27008e298f93ea81218265b.tar.gz
jquery-c82a6685bb964627e27008e298f93ea81218265b.zip
Event: Fix delegated radio events when arrow keys are used
Fixes gh-2343, gh-2410 Close gh-2617
Diffstat (limited to 'src')
-rw-r--r--src/event.js7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/event.js b/src/event.js
index 97dbf57b2..9d06781b7 100644
--- a/src/event.js
+++ b/src/event.js
@@ -488,9 +488,10 @@ jQuery.event = {
// Find delegate handlers
// Black-hole SVG <use> instance trees (#13180)
//
- // Support: Firefox
- // Avoid non-left-click bubbling in Firefox (#3861)
- if ( delegateCount && cur.nodeType && ( !event.button || event.type !== "click" ) ) {
+ // Support: Firefox<=42+
+ // Avoid non-left-click in FF but don't block IE radio events (#3861, gh-2343)
+ if ( delegateCount && cur.nodeType &&
+ ( event.type !== "click" || isNaN( event.button ) || event.button < 1 ) ) {
for ( ; cur !== this; cur = cur.parentNode || this ) {