Opened 9 years ago

Closed 9 years ago

Last modified 8 years ago

#7264 closed bug (fixed)

Spinner returns values beyond min and max, off by one

Reported by: ryanneufeld Owned by:
Priority: minor Milestone: git
Component: [meta] ui.dev Version: git (not yet released)
Keywords: Cc:
Blocked by: Blocking:

Description

See: http://jsfiddle.net/ryanneufeld/m57gP/

When using the spinner if you continue to hit up/down when at the min/max, you get min-1 and max+1 returned in ui.value.

It's expected that when at the min value, min should be returned via the spin callback.

Change History (5)

comment:1 Changed 9 years ago by Scott González

Resolution: invalid
Status: newclosed

Thanks, but we don't use the bug tracker for plugins that haven't been released yet. I've copied the content of this ticket to the appropriate place: http://wiki.jqueryui.com/w/page/12138077/Spinner#comment1303701545

comment:2 Changed 8 years ago by ryanneufeld

Why is this marked as invalid?

All the places on the jqueryUI site show to report them here... I'm confused.

comment:3 Changed 8 years ago by rdworth

See http://blog.jqueryui.com/2010/11/jquery-ui-1-9-milestone-3-spinner/ How To Provide Feedback section. Of course best would be to test with and provide feedback on 1.9m5 or even later, but that's the post about spinner. The 1.9m5 post has the same instruction on how to provide feedback on testing not yet released components.

Last edited 8 years ago by rdworth (previous) (diff)

comment:4 Changed 8 years ago by beatryder

Resolution: invalidfixed

Spinner: modified _spin and _setOption to call new method _trimValue to check for min/max values. Fixed #7264 - Spinner returns values beyond min and max, off by one

Changeset: b0182d78229058fdf61d5f9c3b8a66617d056f30

comment:5 Changed 8 years ago by Scott González

Component: ui.core[meta] ui.dev
Milestone: 1.9git
Version: git
Note: See TracTickets for help on using tickets.