Opened 8 years ago

Closed 8 years ago

#12767 closed defect (invalid)

In a Spanish locale, format "x.y" is unable to be accepted in dijit.form.NumberTextBox

Reported by: wansc Owned by: Douglas Hays
Priority: high Milestone: tbd
Component: Dijit - Form Version: 1.6.0
Keywords: Cc:
Blocked By: Blocking:

Description (last modified by bill)

In widget dijit.form.NumberTextBox, when inputing data as x.y format in Spanish locale, error message will occur to show that "the value input is not valid"

The problem is easy to recreate. In the example two of the following page. http://docs.dojocampus.org/dijit/form/NumberTextBox, "This example creates a simple NumberTextBox programmatically. The fractional part can be 0 to 6 digits long." input data "1.0" with English locale, no error message occurs, However, when switching to Spanish language, input the same value, error message appears.

Attachments (2)

english local.JPG (136.3 KB) - added by wansc 8 years ago.
Input data in NumberTextBox? with English locale
spanish locale.JPG (144.3 KB) - added by wansc 8 years ago.
Input data in NumberTextBox? with Spanish locale with Error

Download all attachments as: .zip

Change History (4)

Changed 8 years ago by wansc

Attachment: english local.JPG added

Input data in NumberTextBox? with English locale

Changed 8 years ago by wansc

Attachment: spanish locale.JPG added

Input data in NumberTextBox? with Spanish locale with Error

comment:1 Changed 8 years ago by bill

Component: GeneralDijit - Form
Description: modified (diff)
Owner: set to Douglas Hays

comment:2 Changed 8 years ago by Douglas Hays

Resolution: invalid
Status: newclosed

Spanish decimal numbers use commas.

Note: See TracTickets for help on using tickets.