angular-mighty-datepicker icon indicating copy to clipboard operation
angular-mighty-datepicker copied to clipboard

Start date changes when selecting a date

Open alexgoldstone opened this issue 8 years ago • 1 comments

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?

alexgoldstone avatar May 23 '16 00:05 alexgoldstone

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.

alexgoldstone avatar May 23 '16 00:05 alexgoldstone