#8169 closed bug (invalid)
Change does not fire on input[type=number] on Chrome
Reported by: | Owned by: | ||
---|---|---|---|
Priority: | high | Milestone: | 1.next |
Component: | event | Version: | 1.4.3 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
To reproduce on Chrome OSX 8.0.522.237:
<input type="number"> <script> $('[type=number]').change(function(){
alert(this.value);
}) </script>
Then try scrolling
Change History (11)
comment:1 Changed 12 years ago by
Resolution: | → duplicate |
---|---|
Status: | new → closed |
comment:2 Changed 12 years ago by
comment:3 Changed 12 years ago by
Component: | unfiled → event |
---|---|
Priority: | undecided → high |
Version: | 1.4.4 → 1.4.3 |
comment:4 Changed 12 years ago by
Why is this a duplicate of #8148? There is nothing which indicates a call to .focus()
is involved.
Please submit a reduced test case, which reproduces the issue you are experiencing, on http://jsfiddle.net. So that we can investigate this issue further. Also make sure to read the link given below, in order to provide a most useful bug report.
comment:5 Changed 12 years ago by
Resolution: | duplicate |
---|---|
Status: | closed → reopened |
comment:6 Changed 12 years ago by
Status: | reopened → open |
---|
comment:7 Changed 12 years ago by
Owner: | set to [email protected]… |
---|---|
Status: | open → pending |
As stated above, please provide a reduced test case and more information what you think is wrong / what expected behavior is and how this is jQuery's fault.
This quick stab at making a test case for this (note it doesn't use jQuery) shows that Chrome fires the change event only when the input loses focus and the value has changed. This is afaik also adhering to the HTML 5 specification.
comment:8 Changed 12 years ago by
Resolution: | → invalid |
---|---|
Status: | pending → closed |
Because we get so many tickets, we often need to return them to the initial reporter for more information. If that person does not reply within 14 days, the ticket will automatically be closed, and that has happened in this case. If you still are interested in pursuing this issue, feel free to add a comment with the requested information and we will be happy to reopen the ticket if it is still valid. Thanks!
comment:9 Changed 11 years ago by
Have the same issue. Can replicate the error on URL submitted by jitter http://jsfiddle.net/jitter/q3MEx/. How may I help?
comment:10 Changed 11 years ago by
That is the correct behaviour for a "change" event. See: http://api.jquery.com/change/
The change event is sent to an element when its value changes. This event is limited to <input> elements, ><textarea> boxes and <select> elements. For select boxes, checkboxes, and radio buttons, the event is fired immediately when the user makes a selection with the mouse, but for the other element types the event is deferred until the element loses focus.
comment:11 Changed 11 years ago by
just a thought pertaining to ops intent of allowing the rolling up and down to trigger some change:
one could bind the "mouseup" event so that the change could be handled.
, although we would still need the "change" event for direct changes to the input box via keyboard
Duplicate of #8148.