mirror of https://github.com/ElemeFE/element
DatePicker: fix handleClear #21301
datetimepick selects only one date. When it is cleared, clicking again is invalid #21301pull/22043/head
parent
8ab1db83c5
commit
7f4259f6c9
|
@ -441,8 +441,9 @@
|
|||
|
||||
methods: {
|
||||
handleClear() {
|
||||
this.minDate = null;
|
||||
this.maxDate = null;
|
||||
// popper hide call resetView
|
||||
// this.minDate = null;
|
||||
// this.maxDate = null;
|
||||
this.leftDate = calcDefaultValue(this.defaultValue)[0];
|
||||
this.rightDate = nextMonth(this.leftDate);
|
||||
this.$emit('pick', null);
|
||||
|
|
Loading…
Reference in New Issue