Opened 13 years ago
Closed 12 years ago
#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: | |
Blocked by: | Blocking: |
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 (3)
comment:1 Changed 13 years ago by
comment:2 Changed 13 years ago by
Well if Chrome/Webkit is firing the change event then jQuery will deliver it. A workaround at our level would require saving the current value on focus and then comparing to that value on blur. I'd file a bug with them.
comment:3 Changed 12 years ago by
Priority: | → undecided |
---|---|
Resolution: | → wontfix |
Status: | new → closed |
This seems like it has to be fixed by Chrome.
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?