Merge pull request #3176 from SergioCrisostomo/fix-3158

Always apply same increment to not splited panels
This commit is contained in:
Aresn 2018-03-20 09:58:49 +08:00 committed by GitHub
commit f13df74fef
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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) {