Opened 12 years ago

Closed 12 years ago

Last modified 8 years ago

#4476 closed defect (fixed)

NumberSpinner (and NumberTextBox) cannot have an initial value of 0

Reported by: John Locke Owned by: Douglas Hays
Priority: high Milestone: 1.0
Component: Dijit - Form Version: 1.0
Keywords: Cc:
Blocked By: Blocking:

Description (last modified by John Locke)

This code results in a blank number spinner, and when it's wrapped in an InlineEditBox?, it shows NaN. You cannot spin up or down until you type a number:

<input dojoType="dijit.form.NumberSpinner?" name="project_budget" id="proj_budget" value="0" size="4" smallDelta="0.25" largeDelta="4" constraints="{min:0, max:1000, places:'2'}"/>

This appears to be a regression of #3164.

This works in 0.9, broken in head.

Change History (6)

comment:1 Changed 12 years ago by John Locke

Description: modified (diff)

comment:2 Changed 12 years ago by John Locke

Description: modified (diff)

comment:3 Changed 12 years ago by Adam Peller

Owner: set to Douglas Hays

this one looks more like a dup

comment:4 Changed 12 years ago by bill

Milestone: 1.0
Summary: NumberSpinner (and NumberTextBox) cannot have a default value of 0NumberSpinner (and NumberTextBox) cannot have an initial value of 0

comment:5 Changed 12 years ago by Douglas Hays

Resolution: fixed
Status: newclosed

(In [10567]) Fixes #4476. Changed test for =="" to ==="" to not match 0.

comment:6 Changed 8 years ago by bill

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