Opened 9 years ago

Closed 9 years ago

Last modified 8 years ago

#10461 closed defect (fixed)

NumberTextBox: parse errors

Reported by: Douglas Hays Owned by: Douglas Hays
Priority: high Milestone: 1.5
Component: Dijit - Form Version: 1.4.0b
Keywords: Cc:
Blocked By: Blocking:

Description

Run dijit/tests/form/test_Spinner.html
In the last widget, enter 99 and press TAB. This should be flagged as an error since places=1 but it's accepted and .0 is appended.
In the next-to-last widget, type 156.0 and press TAB. Ths should be invalid and left alone, but it's reformatted as 156 without the .0

Attachments (1)

10461.patch (4.4 KB) - added by Douglas Hays 9 years ago.
Fixes regexp that was incorrectly checking for exponential notation. Add exponential check to format and _setValueAttr methods. Add automated tests.

Download all attachments as: .zip

Change History (3)

Changed 9 years ago by Douglas Hays

Attachment: 10461.patch added

Fixes regexp that was incorrectly checking for exponential notation. Add exponential check to format and _setValueAttr methods. Add automated tests.

comment:1 Changed 9 years ago by Douglas Hays

Resolution: fixed
Status: newclosed

(In [20974]) Fixes #10461. Apply 10461.patch, fixing format problems with exponential notation and add automated tests to Spinner_a11y.html since it uses NumberTextBox? widgets.

comment:2 Changed 8 years ago by bill

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