#4481 closed bug (wontfix)
beforeShowDay breaks dialog when element is inline
Reported by: | dmfontz | Owned by: | |
---|---|---|---|
Priority: | minor | Milestone: | 1.8 |
Component: | ui.datepicker | Version: | 1.7.1 |
Keywords: | beforeShowDay, inline | Cc: | |
Blocked by: | Blocking: |
Description
Seems to be related to the time it takes the beforeShowDay to execute. Adding a time out is a workaround. I also changed the beforeShowDay function to just return true and it worked. However, when the function actually does some processing the dp will not render.
See example here: http://jsbin.com/owita/edit
See discussion here: http://groups.google.com/group/jquery-ui/t/533b660261d3458d
Change History (3)
comment:1 Changed 14 years ago by
Component: | ui.dialog → ui.datepicker |
---|---|
Milestone: | TBD → 1.7.2 |
comment:2 Changed 14 years ago by
Milestone: | 1.7.2 → 1.8 |
---|
comment:3 Changed 14 years ago by
Resolution: | → wontfix |
---|---|
Status: | new → closed |
Note: See
TracTickets for help on using
tickets.
The problem appears to be that the callback function cannot access the array of dates to exclude, probably because it is all declared within the $(function() {}) initialiser callback. If the array and callback function are moved outside of this it all works again: