Opened 7 years ago
Last modified 4 years ago
#14578 open bug
Destroying a date picker breaks another one
Reported by: | mme | Owned by: | |
---|---|---|---|
Priority: | minor | Milestone: | none |
Component: | ui.datepicker | Version: | 1.11.4 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
What I did:
- Wrote code: https://jsfiddle.net/x85hfnxr/1/
- Executed code (second date picker gets destroyed)
- Hovered over first date picker
Result:
- Error on console: "TypeError: datepicker_instActive is null"
Expectation:
- First date picker continues to work
Tested with Firefox 40.0.3 on Windows 7 Pro SP1
Change History (4)
comment:2 Changed 7 years ago by
The error does not occur with the following patch:
5769c5769 < if (!$.datepicker._isDisabledDatepicker( datepicker_instActive.inline? datepicker_instActive.dpDiv.parent()[0] : datepicker_instActive.input[0])) { --- > if (!datepicker_instActive || !$.datepicker._isDisabledDatepicker( datepicker_instActive.inline? datepicker_instActive.dpDiv.parent()[0] : datepicker_instActive.input[0])) {
comment:3 Changed 7 years ago by
Status: | new → open |
---|
Note: See
TracTickets for help on using
tickets.