Ticket #5645 (closed defect: fixed)

Opened 10 months ago

Last modified 10 months ago

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 Owned by: doughays
Priority: normal Milestone: 1.1
Component: Dijit Version: 1.0
Severity: normal Keywords:
Cc:

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

Changed 10 months ago by bill

Same as #5202?

Changed 10 months ago by bill

  • owner set to doughays

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()

Changed 10 months ago by doughays

  • status changed from new to closed
  • resolution set to fixed

(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.