Modify ↓
Ticket #2533 (closed bug: worksforme)
datepicker disable/enable focus bug
| Reported by: | mnichols | Owned by: | iMarc |
|---|---|---|---|
| Priority: | major | Milestone: | 1.2.4 |
| Component: | ui | Version: | 1.2.3 |
| Keywords: | datepicker focus disable enable bug | Cc: | |
| Blocking: | Blocked by: |
Description
When you disable an datepicker and then enable it again, the focus event is not fired because setting 'disabled' on an element makes this handler invalid (Firefox and IE...not sure about others). The fix is to reattach the focus event on $target. To test, start with datepicker disabled, then enable, then try to use. You get an js error. See patch please.
Attachments
Change History
Changed 5 years ago by mnichols
-
attachment
uidatepicker.enable.reattachfocus.patch
added
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.
Note: See
TracTickets for help on using
tickets.

datepicker focus reattachment