Always apply same increment to not splited panels

This commit is contained in:
Sergio Crisostomo 2018-03-16 11:16:44 +01:00
parent 6bc3b19f22
commit 4b082de222

View file

@ -295,9 +295,7 @@
const otherPanel = panel === 'left' ? 'right' : 'left';
const otherCurrent = new Date(this[`${otherPanel}PanelDate`]);
otherCurrent[`set${type}`](otherCurrent[`get${type}`]() + increment);
if (current[`get${type}`]() !== otherCurrent[`get${type}`]()){
this[`${otherPanel}PanelDate`] = otherCurrent;
}
this[`${otherPanel}PanelDate`] = otherCurrent;
}
},
showYearPicker (panel) {