Innologica / vue2-daterange-picker

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

clear the selected date #289

Closed roy126 closed 2 years ago

roy126 commented 2 years ago

Hi, I can't clear the already selected date, I tried it like this:

this.date Range = { date Start: null, date End: null };

this.dateRange.date Start = null; this.dateRange.date End= null;

this.dateRange.dateEnd= ''; this.dateRange.dateStart = '';

Nothing helps

image

nkostadinov commented 2 years ago

You are using wrong props for the v-model. They are startDate and endDate and you clear them like this:

this.dateRange.startDate = null
this.dateRange.endDate = null