Merge pull request #3176 from SergioCrisostomo/fix-3158
Always apply same increment to not splited panels
This commit is contained in:
commit
f13df74fef
1 changed files with 1 additions and 3 deletions
|
@ -295,10 +295,8 @@
|
||||||
const otherPanel = panel === 'left' ? 'right' : 'left';
|
const otherPanel = panel === 'left' ? 'right' : 'left';
|
||||||
const otherCurrent = new Date(this[`${otherPanel}PanelDate`]);
|
const otherCurrent = new Date(this[`${otherPanel}PanelDate`]);
|
||||||
otherCurrent[`set${type}`](otherCurrent[`get${type}`]() + increment);
|
otherCurrent[`set${type}`](otherCurrent[`get${type}`]() + increment);
|
||||||
if (current[`get${type}`]() !== otherCurrent[`get${type}`]()){
|
|
||||||
this[`${otherPanel}PanelDate`] = otherCurrent;
|
this[`${otherPanel}PanelDate`] = otherCurrent;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
},
|
},
|
||||||
showYearPicker (panel) {
|
showYearPicker (panel) {
|
||||||
this[`${panel}PickerTable`] = 'year-table';
|
this[`${panel}PickerTable`] = 'year-table';
|
||||||
|
|
Loading…
Add table
Reference in a new issue