From e4de2b46bf2a22238c86ef7c30f823cb2a40ab16 Mon Sep 17 00:00:00 2001 From: Jikkai Xiao Date: Mon, 16 Jul 2018 19:18:29 +0800 Subject: [PATCH] TimeSelect: fix fieldReset when initialValue is empty string (#12010) --- packages/date-picker/src/picker.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/date-picker/src/picker.vue b/packages/date-picker/src/picker.vue index c62615311c8..d7c4b92b99a 100644 --- a/packages/date-picker/src/picker.vue +++ b/packages/date-picker/src/picker.vue @@ -713,7 +713,7 @@ export default { }, handleFieldReset(initialValue) { - this.userInput = initialValue; + this.userInput = initialValue === '' ? null : initialValue; }, handleFocus() {