Skip to main content

Search and Top Navigation

#9448 closed bug (notabug)

Opened July 23, 2013 02:28AM UTC

Closed July 23, 2013 12:53PM UTC

Last modified July 23, 2013 02:58PM UTC

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

Attachments (0)
Change History (2)

Changed July 23, 2013 12:53PM UTC by tj.vantoll comment:1

resolution: → notabug
status: newclosed

The intention of the

stop
method is to work for both. If you need to differentiate between clicks and keypresses you can look at the
currentTarget
of the event - http://jsfiddle.net/vPxhT/.

Changed July 23, 2013 02:58PM UTC by dekajp comment:2

Just for reference updated the fiddle to see - if keys are getting captured by event.which

http://jsfiddle.net/dekajp/vPxhT/3/