Side navigation
#8081 closed bug (wontfix)
Opened January 28, 2011 10:18AM UTC
Closed January 28, 2011 12:38PM UTC
Last modified January 29, 2011 11:17AM UTC
Change event doesn't fire on select if you use combination of keyboard and mouse
Reported by: | nikkilocke | Owned by: | |
---|---|---|---|
Priority: | low | Milestone: | 1.next |
Component: | event | Version: | 1.5rc1 |
Keywords: | Cc: | temp01 | |
Blocked by: | Blocking: |
Description
Example at http://www.trumphurst.com/jquerybug.html
If you focus to a select, then use the arrow keys to select a different value, then without tabbing off the select use the mouse to drop down the field and choose the same (new) value, the change event will not be fired. Even if you tab off the select.
Attachments (0)
Change History (5)
Changed January 28, 2011 10:20AM UTC by comment:1
Changed January 28, 2011 12:38PM UTC by comment:2
cc: | → tempo1 |
---|---|
component: | unfiled → event |
priority: | undecided → low |
resolution: | → wontfix |
status: | new → closed |
version: | 1.4.4 → 1.5rc1 |
Thanks for taking the time to contribute to the jQuery project by writing a bug report and providing a test case!
I can't seem to reproduce this in any browser but Chrome. So this is actually a Chrome bug and not a jQuery bug and you should report it on the Chrome bug tracker. test case which reproduces this with out jQuery included.
This also can't be worked around in a trivial fashion. Furthermore I suggest that you further compare the behavior of different browsers for this. e.g. Opera triggers the change event for every value you select with the arrow keys not only when "tabbing out".
Relying on events like change is though and always prone to errors as the behavior slightly differs from browser to browser and even from platform to platform (hint: mac).
Unless you can yourself provide a clear fix which doesn't introduce unnecessary overhead this won't be fixed.
Getting Involved\\\\
Changed January 28, 2011 12:39PM UTC by comment:3
cc: | tempo1 → temp01 |
---|
Changed January 29, 2011 11:03AM UTC by comment:4
This is an old and known webkit issue and affects more than just change event (the item doesn't update in UI either). See http://crbug.com/57124
Changed January 29, 2011 11:17AM UTC by comment:5
The UI updating issue doesn't happen with the repro steps here (using arrow keys then mouse) but I'm *guessing* that the root issue is the same as in the bug I pointed out in previous comment.
Example reproduced at http://jsfiddle.net/raV3n/, if you prefer it there.