Modify ↓
Ticket #6964 (closed bug: wontfix)
change(function() {..}) handler fires unnecessarily on Webkit
| Reported by: | mspreij | Owned by: | |
|---|---|---|---|
| Priority: | undecided | Milestone: | 1.4.2 |
| Component: | event | Version: | 1.4.2 |
| Keywords: | change | Cc: | |
| Blocking: | Blocked by: |
Description
The .change() handler triggers only on actual changes in Firefox, but in Safari/Chrome it triggers also if you enter something in the field, then delete it, and then tab out of it - leaving the field the same as it was before, unchanged.
Change History
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.
Note: See
TracTickets for help on using
tickets.

Ehrmmm.. so, it turns out that in Chrome at least, for <input type="text" name="whatever" value="yadda" onchange="foobar()"> the foobar() function gets called also, without an *actual* change, just some editing and undoing and tabbing out. Webkit bug?