#1642 closed defect (fixed)
[patch][cla]DropdownDatePicker: Fix for error when initial entry is invalid date
Reported by: | guest | Owned by: | Adam Peller |
---|---|---|---|
Priority: | high | Milestone: | |
Component: | Widgets | Version: | 0.3 |
Keywords: | widget datepicker dropdowndatepicker | Cc: | tk |
Blocked By: | Blocking: |
Description
When DropdownDatePicker? receives an invalid date in its input, the current value in the DatePicker? is used instead. However, when the DropdownDatePicker? loads empty the DatePicker? has no value. So, entering an invalid date (i.e. random string) in the input generates a JS error because DropdownDatePicker? tries to set its input value to an undefined variable.
The attached patch should fix the problem. It checks to see if datePicker.value is defined. If so, it behaves as before. Otherwise, it simply blanks out the input.
Attachments (1)
Change History (8)
Changed 14 years ago by
Attachment: | dddp-no-selection.patch added |
---|
comment:1 Changed 14 years ago by
Sorry, forgot to change "guest" to my email address when I created the ticket.
comment:2 Changed 14 years ago by
Milestone: | → 0.4.1 |
---|---|
Owner: | changed from bill to tk |
comment:3 Changed 14 years ago by
Cc: | tk added |
---|
This patch didnt work in my local tests... working on an alternate solution.
comment:4 Changed 14 years ago by
Owner: | changed from tk to Adam Peller |
---|
The patch