#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: |
Description
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 12 years ago by
comment:2 Changed 12 years ago by
Owner: | set to Douglas Hays |
---|
comment:3 Changed 12 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
(In [17620]) Fixes #8982. Add default min to NumberTextBox? that avoids exponential notation.
comment:4 Changed 10 years ago by
Component: | Dijit → Dijit - Form |
---|
Note: See
TracTickets for help on using
tickets.
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.
dojo/number.js:103