ParadeTo/vue-date-range

Calendar should handle no initial date

Closed this issue · 4 comments

I'm using the calendar together with two input fields for a start and end date, which are synced whenever one of the fields or the calendar is updated.

At the beginning, no date is inserted. This is no problem for the input fields, but the calendar will break when no Moment date is inserted.

Could you change the behaviour to allow for an initial value of null?

Can you show demo or code?

Hey there, yes of course. Here you go!

Awesome, thanks!