#9448 closed bug (notabug)
Spinner "stop" event is called even when typing the value in with the keyboard
Reported by: | mikerobinson | Owned by: | |
---|---|---|---|
Priority: | minor | Milestone: | none |
Component: | ui.spinner | Version: | 1.10.3 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
According to the docs, the stop event should only be "triggered after a spin", however I noticed that it is also triggered when an onkeyup() event is fired for the respective input element using the keyboard. I would like to differentiate between changing the value using the keyboard and using the spinner, but that doesn't seem to be possible.
Here's my jsFiddle
Change History (2)
comment:1 Changed 10 years ago by
Resolution: | → notabug |
---|---|
Status: | new → closed |
comment:2 Changed 10 years ago by
Just for reference updated the fiddle to see - if keys are getting captured by event.which http://jsfiddle.net/dekajp/vPxhT/3/
Note: See
TracTickets for help on using
tickets.
The intention of the
stop
method is to work for both. If you need to differentiate between clicks and keypresses you can look at thecurrentTarget
of the event - http://jsfiddle.net/vPxhT/.