Ticket #6398 (closed enhancement: fixed)

Opened 8 months ago

Last modified 7 months ago

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

Reported by: clown Owned by: doughays
Priority: normal Milestone: 1.2
Component: Dijit Version: 1.1.0
Severity: normal Keywords:
Cc: davidb, becky

Description

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

Changed 8 months 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.

Changed 8 months ago by doughays

  • owner set to doughays

Changed 7 months ago by doughays

  • status changed from new to closed
  • resolution set to fixed

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

Note: See TracTickets for help on using tickets.