#9590 closed bug (wontfix)
IE7 / IE8 / IE9 bind() events order bug
Reported by: | anonymous | Owned by: | |
---|---|---|---|
Priority: | low | Milestone: | 1.next |
Component: | event | Version: | 1.6 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
http://jsfiddle.net/ewzHu/2/ http://stackoverflow.com/questions/6356697/jquery-ie7-ie8-bind-method-events-order-bug
Here are descriptions and samples of the bug. Thank you. ;)
Change History (2)
comment:1 Changed 12 years ago by
Component: | unfiled → event |
---|---|
Priority: | undecided → low |
Status: | new → open |
comment:2 Changed 12 years ago by
Resolution: | → wontfix |
---|---|
Status: | open → closed |
There is no guarantee of order of events outside of key[down,up,press] and mouse[down,up,click]
Note: See
TracTickets for help on using
tickets.
Copied from stackoverflow:
Here is sample: http://jsfiddle.net/ewzHu/2/
<input id="testing" />
$('#testing').bind('change keydown',function(e){
}); Triggers two change events instead of one in IE only when ENTER button is pressed and does not triggers keydown.
If i change the order of bindings like that:
$('#testing').bind('keydown change',function(e){
}); Everything seems to be ok.
Could be a bug. I tested this in Firefox, Chrome, IE9, IE8, and IE7 and here are the results I got:
Gotta love browser inconsistencies! I try not to rely on things like this being in the same order. Another option is to wrap it, or fix it, to eat the unneeded event, if it's important.