Opened 13 years ago

Closed 13 years ago

Last modified 11 years ago

#8982 closed defect (fixed)

NumberTextBox: default minimum value

Reported by: bill Owned by: Douglas Hays
Priority: high Milestone: 1.4
Component: Dijit - Form Version: 1.3.0b3
Keywords: Cc:
Blocked By: Blocking:


The default maximum for NumberTextBox? was chosen to prevent javascript from jumping to exponential notation, which is not supported by the number widgets, although it is supported by dojo.number.

Code is:

if(typeof this.constraints.max != "number"){
	this.constraints.max = 9e+15;

Seems like they also need a minimum too (presumably -9e+15), for the same reason.

Change History (4)

comment:1 Changed 13 years ago by Adam Peller

I don't think it's fully supported by dojo.number either. See the formatting routines. NumberTextBox? requires both parse and format. Good point about min, though.


		throw new Error("exponential notation not supported");

comment:2 Changed 13 years ago by Douglas Hays

Owner: set to Douglas Hays

comment:3 Changed 13 years ago by Douglas Hays

Resolution: fixed
Status: newclosed

(In [17620]) Fixes #8982. Add default min to NumberTextBox? that avoids exponential notation.

comment:4 Changed 11 years ago by bill

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