From 065666870fafd255e50355e9d6c472c66524635e Mon Sep 17 00:00:00 2001 From: someother1 Date: Fri, 23 Jun 2017 13:59:51 +0200 Subject: [PATCH] allow empty values --- src/index.vue | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/index.vue b/src/index.vue index 7dacb59..6e762f4 100644 --- a/src/index.vue +++ b/src/index.vue @@ -59,6 +59,9 @@ export default { this.datepicker.jumpToDate() }, setDate (newDate, oldDate) { + if (!newDate) { + return this.datepicker.clear() + } newDate && this.datepicker.setDate(newDate) }, dateUpdated (selectedDates, dateStr) {