Skip to content

Commit 9edb27c

Browse files
committed
Bugfix for disabled months
1 parent 1a5dfa1 commit 9edb27c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/calendar.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ export default {
173173
if (this.range) {
174174
disable = (!!this.disableDate.to &&
175175
endDate.getMonth() > m.index &&
176-
endDate.getFullYear() <= year) ||
176+
endDate.getFullYear() >= year) ||
177177
(!!this.disableDate.from &&
178178
startDate.getMonth() > m.index &&
179179
startDate.getFullYear() <= year);

0 commit comments

Comments
 (0)