Browse Source

TimeSelect: fix fieldReset when initialValue is empty string (#12010)

Jikkai Xiao 7 years ago
parent
commit
e4de2b46bf
1 changed files with 1 additions and 1 deletions
  1. 1 1
      packages/date-picker/src/picker.vue

+ 1 - 1
packages/date-picker/src/picker.vue

@@ -713,7 +713,7 @@ export default {
     },
 
     handleFieldReset(initialValue) {
-      this.userInput = initialValue;
+      this.userInput = initialValue === '' ? null : initialValue;
     },
 
     handleFocus() {