From 01fe81f3f3b204fcf042f64e8e884a9b4afe2425 Mon Sep 17 00:00:00 2001 From: 07akioni <07akioni2@gmail.com> Date: Fri, 23 Oct 2020 23:11:28 +0800 Subject: [PATCH] fix(date-picker): placeholder now shown --- src/date-picker/src/DatePicker.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/date-picker/src/DatePicker.vue b/src/date-picker/src/DatePicker.vue index 8377e7d38..af823acae 100644 --- a/src/date-picker/src/DatePicker.vue +++ b/src/date-picker/src/DatePicker.vue @@ -355,7 +355,7 @@ export default { } }, localizedStartPlaceholder () { - if (this.startPlaceholder === null) { + if (this.startPlaceholder === undefined) { if (this.type === 'daterange') { return this.localeNs.startDatePlaceholder } else if (this.type === 'datetimerange') { @@ -367,7 +367,7 @@ export default { } }, localizedEndPlaceholder () { - if (this.endPlaceholder === null) { + if (this.endPlaceholder === undefined) { if (this.type === 'daterange') { return this.localeNs.endDatePlaceholder } else if (this.type === 'datetimerange') {