Ticket #4240 (closed bug: fixed)
Datepicker: destroy, disable, and enable methods affect sibling datepickers
| Reported by: | ihumanable | Owned by: | rdworth |
|---|---|---|---|
| Priority: | critical | Milestone: | 1.7.2 |
| Component: | ui.datepicker | Version: | 1.7.1 |
| Keywords: | Cc: | ||
| Blocking: | Blocked by: |
Description
When $(...).datepicker('destroy'); is issued all image buttons (buttons defined during initialization with a buttonImage and buttonImageOnly: true) for all datepickers are removed.
An example is attached, clicking the init startdate and init enddate will place two images on the screen in the correct position and wired properly. Clicking either of the remove buttons, removes both of the images instead of just the one associated with the datepicker being destroyed.
Attachments
Change History
Changed 4 years ago by ihumanable
-
attachment
datepicker.html
added
comment:1 Changed 4 years ago by joern.zaefferer
- Priority changed from minor to major
- Summary changed from Datepicker Destroy Bug to Datepicker destroy affects other datepickers
- Milestone changed from TBD to 1.7
comment:4 Changed 4 years ago by rdworth
- Status changed from assigned to closed
- Resolution set to fixed
Fixed in r2303
comment:5 Changed 4 years ago by rdworth
- Summary changed from Datepicker destroy affects other datepickers to Datepicker: destroy, disable, and enable methods affect sibling datepickers
This also affects 'enable' and 'disable' methods. For all three (destroy, enable, disable) it only affects sibling datepickers. So as a work-around, you can put each datepicker input or div in a wrapper element.
comment:7 Changed 4 years ago by rdworth
- Milestone changed from 1.8 to 1.7.1
merged to 1.7.1 in r2327
comment:8 Changed 4 years ago by rdworth
- Status changed from closed to reopened
- Version changed from 1.6rc6 to 1.7.1
- Resolution fixed deleted
- Milestone changed from 1.7.1 to 1.8
appendText is also affected


Datepicker HTML Test Case