DatePicker: fix handleClear #21301

datetimepick selects only one date. When it is cleared, clicking again is invalid #21301
pull/22043/head
duo 2022-07-28 20:25:13 +08:00 committed by GitHub
parent 8ab1db83c5
commit 7f4259f6c9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 2 deletions

View File

@ -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);