update panel date on every value change
This commit is contained in:
parent
7d6ea205db
commit
8d5323069b
1 changed files with 2 additions and 2 deletions
|
@ -116,7 +116,7 @@
|
||||||
];
|
];
|
||||||
},
|
},
|
||||||
panelPickerHandlers(){
|
panelPickerHandlers(){
|
||||||
return this.pickerTable === `${this.currentView}-table` ? this.handlePick : this.handlePreSelection
|
return this.pickerTable === `${this.currentView}-table` ? this.handlePick : this.handlePreSelection;
|
||||||
},
|
},
|
||||||
datePanelLabel () {
|
datePanelLabel () {
|
||||||
const locale = this.t('i.locale');
|
const locale = this.t('i.locale');
|
||||||
|
@ -140,7 +140,7 @@
|
||||||
watch: {
|
watch: {
|
||||||
value (newVal) {
|
value (newVal) {
|
||||||
this.dates = newVal;
|
this.dates = newVal;
|
||||||
if (JSON.stringify(newVal) === '[null]') this.panelDate = this.startDate || new Date();
|
this.panelDate = this.startDate || this.dates[0] || new Date();
|
||||||
},
|
},
|
||||||
currentView (currentView) {
|
currentView (currentView) {
|
||||||
this.$emit('on-selection-mode-change', currentView);
|
this.$emit('on-selection-mode-change', currentView);
|
||||||
|
|
Loading…
Add table
Reference in a new issue