Skip to content

Commit 0939fe0

Browse files
authored
Merge pull request #33 from mazipan/master
Fix wrong click thisMonth presets
2 parents 4eaa539 + 5548cc7 commit 0939fe0

File tree

5 files changed

+9
-9
lines changed

5 files changed

+9
-9
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.

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)