File tree Expand file tree Collapse file tree 2 files changed +37
-3
lines changed
Expand file tree Collapse file tree 2 files changed +37
-3
lines changed Original file line number Diff line number Diff line change @@ -488,9 +488,10 @@ jQuery.event = {
488488 // Find delegate handlers
489489 // Black-hole SVG <use> instance trees (#13180)
490490 //
491- // Support: Firefox
492- // Avoid non-left-click bubbling in Firefox (#3861)
493- if ( delegateCount && cur . nodeType && ( ! event . button || event . type !== "click" ) ) {
491+ // Support: Firefox<=42+
492+ // Avoid non-left-click in FF but don't block IE radio events (#3861, gh-2343)
493+ if ( delegateCount && cur . nodeType &&
494+ ( event . type !== "click" || isNaN ( event . button ) || event . button < 1 ) ) {
494495
495496 for ( ; cur !== this ; cur = cur . parentNode || this ) {
496497
Original file line number Diff line number Diff line change 1+ <!DOCTYPE html>
2+ < html >
3+ < head lang ="en ">
4+ < meta charset ="UTF-8 ">
5+ < meta http-equiv ="X-UA-Compatible " content ="IE=edge ">
6+ < title > Test for gh-2343 (IE11)</ title >
7+ < script src ="../../dist/jquery.js "> </ script >
8+ < script >
9+ $ ( document ) . ready ( function ( ) {
10+ $ ( "fieldset" ) . on ( "click" , "input" , function ( ) {
11+ $ ( ".result" ) . append ( "click " + this . value + "<br />" ) ;
12+ } ) ;
13+ } ) ;
14+ </ script >
15+ </ head >
16+
17+ < body >
18+
19+ < h1 > Test for gh-2343 (IE11)</ h1 >
20+ < p >
21+ Instructions: In < b > IE11</ b > , click on or focus the first radio button.
22+ Then use the left/right arrow keys to select the other radios.
23+ You should see events logged in the results below.
24+ </ p >
25+ < fieldset >
26+ < input type ="radio " name ="rad " value ="0 " /> 0
27+ < input type ="radio " name ="rad " value ="1 " /> 1
28+ < input type ="radio " name ="rad " value ="2 " /> 2
29+ </ fieldset >
30+ < div class ="result "> </ div >
31+
32+ </ body >
33+ </ html >
You can’t perform that action at this time.
0 commit comments