Opened 9 years ago

Closed 9 years ago

Last modified 9 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 9 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 9 years ago by rdworth

Version 0, edited 9 years ago by rdworth (next)

comment:4 Changed 9 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 9 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.