Skip to content
This repository has been archived by the owner on Jun 5, 2020. It is now read-only.

Start date changes when selecting a date #30

Open
alexgoldstone opened this issue May 23, 2016 · 1 comment
Open

Start date changes when selecting a date #30

alexgoldstone opened this issue May 23, 2016 · 1 comment

Comments

@alexgoldstone
Copy link

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
Copy link
Author

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant