Commit f13df74fefb31faf831b4cd6cf39e97ab613e147
Committed by
GitHub
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 | 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) { | ... | ... |