Explorar el Código

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

Jikkai Xiao hace 7 años
padre
commit
e4de2b46bf
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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() {