diff --git a/src/components/MdDatepicker/MdDatepicker.vue b/src/components/MdDatepicker/MdDatepicker.vue index 7546eea62..5d9ff07ca 100644 --- a/src/components/MdDatepicker/MdDatepicker.vue +++ b/src/components/MdDatepicker/MdDatepicker.vue @@ -63,6 +63,9 @@ if (selectedDate) { this.modelDate = this.dateToHTMLString(selectedDate) this.$emit('input', selectedDate) + } else { + this.modelDate = null + this.$emit('input', null) } }, value () { diff --git a/src/components/MdDatepicker/MdDatepickerDialog.vue b/src/components/MdDatepicker/MdDatepickerDialog.vue index f0f029067..a582a0681 100644 --- a/src/components/MdDatepicker/MdDatepickerDialog.vue +++ b/src/components/MdDatepicker/MdDatepickerDialog.vue @@ -306,6 +306,7 @@ }, onCancel () { this.closeDialog() + this.$emit('update:mdDate', null) }, onConfirm () { this.closeDialog()