Skip to content

Commit 654e5c3

Browse files
author
Irfan Maulana
committed
📆 fix wrong when click thisMonth presets
1 parent 0be4bf2 commit 654e5c3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/js/rangedate-picker.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -190,11 +190,11 @@ export default {
190190
if (this.isCompact) {
191191
this.isOpen = true
192192
}
193-
if (this.activeMonthStart === 11) this.activeYearEnd += 1
193+
if (this.activeMonthStart === 11) this.activeYearEnd = this.activeYearStart + 1
194194
},
195195
watch: {
196196
startNextActiveMonth: function (value) {
197-
if (value === 0) this.activeYearEnd += 1
197+
if (value === 0) this.activeYearEnd = this.activeYearStart + 1
198198
}
199199
},
200200
computed: {

0 commit comments

Comments
 (0)