Skip to content

Commit

Permalink
Date Picker: Fix resetView() reset range state
Browse files Browse the repository at this point in the history
  • Loading branch information
Lecrean committed Mar 25, 2019
1 parent ed13de3 commit a28468b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/date-picker/src/panel/date-range.vue
Original file line number Diff line number Diff line change
Expand Up @@ -671,6 +671,7 @@
// an alternative would be resetView whenever picker becomes visible, should also investigate date-panel's resetView
this.minDate = this.value && isDate(this.value[0]) ? new Date(this.value[0]) : null;
this.maxDate = this.value && isDate(this.value[0]) ? new Date(this.value[1]) : null;
this.rangeState.selecting = false;
}
},
Expand Down

0 comments on commit a28468b

Please sign in to comment.