Opened 10 years ago

Closed 10 years ago

Last modified 10 years ago

#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:


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 tj.vantoll

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 -

comment:2 Changed 10 years ago by dekajp

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

Note: See TracTickets for help on using tickets.