Innologica / vue2-daterange-picker

Vue2 date range picker
https://innologica.github.io/vue2-daterange-picker/
MIT License
330 stars 209 forks source link

Navigating the calendars when programmatically updating v-model #308

Closed dadigu closed 2 years ago

dadigu commented 2 years ago

I have this issue where if I programmatically update the v-model it does not navigate the calendars.

For example. if I select some range in the past, like 4 months back. then I programmatically update the startDate and endDate to be current week, I would expect the calendars no navigate themselves to the todays months where I'd see the new selection.

This seems to work with the built in ranges. I can set with ranges prop. But in my case my ranges are positioned elsewhere on the page so I just have a click handler on those that update the v-model of the range picker, which works fine with updating the selection with in the range picker but, I'm missing the calendar navigation.

Does anyone have a workaround for this?

Thanks