Commit 4b082de2220c7a574658e4775e07b5dccd983441

Authored by Sergio Crisostomo
1 parent 6bc3b19f

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 295 const otherPanel = panel === 'left' ? 'right' : 'left';
296 296 const otherCurrent = new Date(this[`${otherPanel}PanelDate`]);
297 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 301 showYearPicker (panel) {
... ...