Opened 11 years ago

Closed 11 years ago

#5645 closed defect (fixed)

date and time fields in dialog: error when press esc to close a dialog when a date or time field has focus

Reported by: Becky Gibson Owned by: Douglas Hays
Priority: high Milestone: 1.1
Component: Dijit Version: 1.0
Keywords: Cc:
Blocked By: Blocking:

Description

On tests/test_dialog.html open the dialog or tooltip dialog via the "Show Dialog" or "Show Tooltip Dialog" buttons. Put focus on the date or time field (either with the mouse or by tabbing to field). With focus on one of those two fields, press escape to close the dialog and you get an error: unterminated string literal.

Change History (3)

comment:1 Changed 11 years ago by bill

Same as #5202?

comment:2 Changed 11 years ago by bill

Owner: set to Douglas Hays

Above comment should read "see also #5202". Failing for me (on IE) in _FormValueWidget::_onKeyPress() apparently since getValue() returns undefined rather than null, so you try to call toString()

comment:3 Changed 11 years ago by Douglas Hays

Resolution: fixed
Status: newclosed

(In [12165]) Fixes #5645 !strict. Made the default value for datetextbox undefined instead of NaN. Added a check for undefined before calling toString().

Note: See TracTickets for help on using tickets.