Explorar o código

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

Jikkai Xiao %!s(int64=7) %!d(string=hai) anos
pai
achega
e4de2b46bf
Modificáronse 1 ficheiros con 1 adicións e 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() {