Przeglądaj źródła

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

Jikkai Xiao 7 lat temu
rodzic
commit
e4de2b46bf
1 zmienionych plików z 1 dodań i 1 usunięć
  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() {