Ticket #8081 (closed bug: wontfix)
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 | |
| Blocking: | Blocked by: |
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.
Change History
comment:2 Changed 2 years ago by jitter
- Status changed from new to closed
- Cc tempo1 added
- Component changed from unfiled to event
- Priority changed from undecided to low
- Version changed from 1.4.4 to 1.5rc1
- Resolution set to wontfix
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.
comment:4 Changed 2 years ago by temp01
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
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

Example reproduced at http://jsfiddle.net/raV3n/, if you prefer it there.