angular-mighty-datepicker
angular-mighty-datepicker copied to clipboard
Start date changes when selecting a date
I configure my calendar to display two months and hide the buttons using CSS as I want to limit the period (which doesn't seem to be an option I can pass?).
ctrl.datePickerOptions = {
start: null,
months: 2,
mode: 'simple',
filter: ctrl._filter,
callback: ctrl._callback
};
The initial display works fine but when a date is selected in the second calendar, that second month becomes the first month. Is there a way to prevent this behaviour so that the starting month is retained when a date is selected?
I found that if I use mode: 'multiple'
then the starting month isn't changed so I can use this for now and just remember the last date selected, ignoring the array of multiple dates.