#15102 closed bug (fixed)
ui.DatePicker Prev Button not working with showing multiple month and showCurrentAtPos not equal to zero
Reported by: | Umbrae | Owned by: | Scott González |
---|---|---|---|
Priority: | minor | Milestone: | 1.12.2 |
Component: | ui.datepicker | Version: | 1.12.1 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
When showing more than 1 month at a time and setting showCurrentAtPos/showCurrentMonthAtPos to be anything but 0, the prev button does not operate (does nothing). Next button will properly advance, but previous has no affect. In the same case (showing multiple months) with showCurrentAtPos and showCurrentMonthAtPos set to zero the previous button works properly as expected.
<script> $( "#datepicker" ).datepicker({ numberOfMonths: 3, showButtonPanel: true, showCurrentAtPos: 1, showCurrentMonthAtPos: 1 }); </script> <div id="datepicker"></div>
Change History (5)
comment:1 Changed 6 years ago by
comment:2 Changed 6 years ago by
Seems as if showCurrentAtPos is added to offset when refreshing the datepicker, which is not correct. I've already fixed this for me. How can i contribute?
comment:3 Changed 6 years ago by
You'll need to file a pull request on GitHub. You can start by reading https://github.com/jquery/jquery-ui/blob/master/CONTRIBUTING.md and http://contribute.jquery.org/commits-and-pull-requests/
If you have any questions, feel free to ask here or IRC.
comment:4 Changed 6 years ago by
Owner: | set to Scott González |
---|---|
Resolution: | → fixed |
Status: | new → closed |
In 17404ce:
comment:5 Changed 6 years ago by
Milestone: | none → 1.12.2 |
---|
#15118 is a duplicate of this ticket.