Closed ARehmanMahi closed 2 years ago
Can you provide a working example of your issue using https://jsfiddle.net ?
@holtkamp
Here's The JSfiddle
@holtkamp Hi, Did you got time to saw the fiddle? Any hope for this?
Hi @bsienn, thanks for the Fiddle, had a look and it seems the combination of endMonth
and singleMonth: true
do not work well.
When using singleMonth: false
, the last month IS the current month (in this case: April). So the mechanism that determines which month is the last, should take into account that only one month is displayed.
singleMonth: true
singleMonth: false
So the source of the problem is known. Only the solution is more difficult... For the time being, you could use singleMonth: false
as a workaround. Note that on small/mobile devices this will not work. Personally I do not have time to dive into this...
Alright, Thanks for your time. I'm just a mid level developer, I tried to find a solution bus wasn't able to. I'll wait or even try again some time soon again because I love this plugin and use this feature.
For a workaround I have added the following line to force jump to next month after Init code.
$('.date-picker-wrapper').find('span.next').click();
Single month mode
.Selecting would show March instead of April for selection as the current month is April.
This happens when enddate is defined. How to set it to use current month?