Commit f13df74fefb31faf831b4cd6cf39e97ab613e147

Authored by Aresn
Committed by GitHub
2 parents f4f34695 4b082de2

Merge pull request #3176 from SergioCrisostomo/fix-3158

Always apply same increment to not splited panels
Showing 1 changed file with 1 additions and 3 deletions   Show diff stats
src/components/date-picker/panel/Date/date-range.vue
@@ -295,9 +295,7 @@ @@ -295,9 +295,7 @@
295 const otherPanel = panel === 'left' ? 'right' : 'left'; 295 const otherPanel = panel === 'left' ? 'right' : 'left';
296 const otherCurrent = new Date(this[`${otherPanel}PanelDate`]); 296 const otherCurrent = new Date(this[`${otherPanel}PanelDate`]);
297 otherCurrent[`set${type}`](otherCurrent[`get${type}`]() + increment); 297 otherCurrent[`set${type}`](otherCurrent[`get${type}`]() + increment);
298 - if (current[`get${type}`]() !== otherCurrent[`get${type}`]()){  
299 - this[`${otherPanel}PanelDate`] = otherCurrent;  
300 - } 298 + this[`${otherPanel}PanelDate`] = otherCurrent;
301 } 299 }
302 }, 300 },
303 showYearPicker (panel) { 301 showYearPicker (panel) {