Browse Source

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

Jikkai Xiao 7 năm trước cách đây
mục cha
commit
e4de2b46bf
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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() {