Skip to content

Commit 5548cc7

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

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

dist/vue-rangedate-picker.common.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -547,11 +547,11 @@ var __vue_module__ = {
547547
if (this.isCompact) {
548548
this.isOpen = true;
549549
}
550-
if (this.activeMonthStart === 11) { this.activeYearEnd += 1; }
550+
if (this.activeMonthStart === 11) { this.activeYearEnd = this.activeYearStart + 1; }
551551
},
552552
watch: {
553553
startNextActiveMonth: function (value) {
554-
if (value === 0) { this.activeYearEnd += 1; }
554+
if (value === 0) { this.activeYearEnd = this.activeYearStart + 1; }
555555
}
556556
},
557557
computed: {

dist/vue-rangedate-picker.esm.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -543,11 +543,11 @@ var __vue_module__ = {
543543
if (this.isCompact) {
544544
this.isOpen = true;
545545
}
546-
if (this.activeMonthStart === 11) { this.activeYearEnd += 1; }
546+
if (this.activeMonthStart === 11) { this.activeYearEnd = this.activeYearStart + 1; }
547547
},
548548
watch: {
549549
startNextActiveMonth: function (value) {
550-
if (value === 0) { this.activeYearEnd += 1; }
550+
if (value === 0) { this.activeYearEnd = this.activeYearStart + 1; }
551551
}
552552
},
553553
computed: {

dist/vue-rangedate-picker.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -549,11 +549,11 @@ var __vue_module__ = {
549549
if (this.isCompact) {
550550
this.isOpen = true;
551551
}
552-
if (this.activeMonthStart === 11) { this.activeYearEnd += 1; }
552+
if (this.activeMonthStart === 11) { this.activeYearEnd = this.activeYearStart + 1; }
553553
},
554554
watch: {
555555
startNextActiveMonth: function (value) {
556-
if (value === 0) { this.activeYearEnd += 1; }
556+
if (value === 0) { this.activeYearEnd = this.activeYearStart + 1; }
557557
}
558558
},
559559
computed: {

dist/vue-rangedate-picker.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)