Opened 12 years ago

Closed 12 years ago

Last modified 8 years ago

#4497 closed defect (fixed)

DateTextBox wth no value shows "Invalid Date", i.e. canonical form not empty string

Reported by: ptbrunet Owned by: Adam Peller
Priority: high Milestone: 1.0
Component: Dijit - Form Version: 0.9
Keywords: Cc: brunet@…, Douglas Hays
Blocked By: Blocking:

Description

Go to http://archive.dojotoolkit.org/nightly/dojotoolkit/dijit/tests/form/test_validate.html and notice the first DateTextBox has "Invalid Date". This is probably due to lines 63-64 in _FormWidget.js, i.e.

attributeMap: ..., {..., value:"focusNode", ...),

wild_bill commented on IRC: Copying value via attributeMap sounds overly simplistic maybe. In this case the canonical value goes to the hidden input field.

Change History (5)

comment:1 Changed 12 years ago by Adam Peller

Priority: normalhigh

comment:2 Changed 12 years ago by bill

This might have something to do with a parser limitation dealing w/the value attribute. See #4033.

comment:3 Changed 12 years ago by Adam Peller

Cc: Douglas Hays added

comment:4 Changed 12 years ago by Adam Peller

Resolution: fixed
Status: newclosed

(In [10568]) Don't copy over values with type of Date with attributeMap. Strings are most predictable, but let's stick to primitive types. Fixes #4497, refs #3058.

comment:5 Changed 8 years ago by bill

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