Skip to content

Commit ae5faa1

Browse files
author
Nathan Reyes
committed
Fix bug for duplicated weekday label keys. Closes #28.
1 parent 8553a48 commit ae5faa1

File tree

4 files changed

+7
-4
lines changed

4 files changed

+7
-4
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
## 0.4.3
2+
* Fix bug for duplicated weekday label keys. Closes #28.
3+
14
## 0.4.2
25
* Convert event names to all lowercase to support in-DOM templates. Closes #26.
36

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "v-calendar",
3-
"version": "0.4.2",
3+
"version": "0.4.3",
44
"description": "A clean and extendable plugin for building simple attributed calendars in Vue.js.",
55
"keywords": [
66
"vue",

src/components/CalendarPane.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,8 @@
9494
:style='weekdayStyle_'>
9595
<!--Weekday labels-->
9696
<div
97-
v-for='weekday in weekdayLabels_'
98-
:key='weekday'
97+
v-for='(weekday, i) in weekdayLabels_'
98+
:key='i + 1'
9999
class='c-weekday'>
100100
{{ weekday }}
101101
</div>

src/components/CalendarWeeks.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<div
44
class='c-week'
55
v-for='(week, i) in weeks'
6-
:key='i'
6+
:key='i + 1'
77
@touchstart.passive='$emit("touchstart", $event)'
88
@touchmove.passive='$emit("touchmove", $event)'
99
@touchend.passive='$emit("touchend", $event)'>

0 commit comments

Comments
 (0)