Skip to content

Commit e4de2b4

Browse files
authored
TimeSelect: fix fieldReset when initialValue is empty string (#12010)
1 parent ef4caa9 commit e4de2b4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/date-picker/src/picker.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -713,7 +713,7 @@ export default {
713713
},
714714
715715
handleFieldReset(initialValue) {
716-
this.userInput = initialValue;
716+
this.userInput = initialValue === '' ? null : initialValue;
717717
},
718718
719719
handleFocus() {

0 commit comments

Comments
 (0)