Opened 14 years ago

Closed 14 years ago

Last modified 11 years ago

#6398 closed enhancement (fixed)

Spinner: Pressing increment/decrement button does nothing when value is blank

Reported by: Joseph Scheuhammer Owned by: Douglas Hays
Priority: high Milestone: 1.2
Component: Dijit - Form Version: 1.1.0
Keywords: Cc: davidb, Becky Gibson
Blocked By: Blocking:


Somewhat odd behaviour: If the text box component of a Spinner is blank, clicking and pressing the increment or decrement buttons do nothing, but they do appear pushed down.

If activated via the keyboard (up and down arrow keys), again the arrow buttons appear depressed, but the value of the spinner does not change -- the text box remains blank.

Suggestion: if blank and decrementing, show the spinner's maximum, and decrement it; if incrementing, show the spinner's minimum and increment it.

Change History (4)

comment:1 Changed 14 years ago by bill

From the meeting, we were worried about when min and/or max isn't specified... Doug suggested that if no min, use max and vis-a-versa, and if neither, use 0.

comment:2 Changed 14 years ago by Douglas Hays

Owner: set to Douglas Hays

comment:3 Changed 14 years ago by Douglas Hays

Resolution: fixed
Status: newclosed

(In [13729]) Fixes #6398. If the value is not-a-number and the user requests spinning, then assign defaults based on min/max/0.

comment:4 Changed 11 years ago by bill

Component: DijitDijit - Form
Note: See TracTickets for help on using tickets.