Skip to content

Commit

Permalink
Fix bug for duplicated weekday label keys. Closes #28.
Browse files Browse the repository at this point in the history
  • Loading branch information
Nathan Reyes committed Dec 19, 2017
1 parent 8553a48 commit ae5faa1
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
## 0.4.3
* Fix bug for duplicated weekday label keys. Closes #28.

## 0.4.2
* Convert event names to all lowercase to support in-DOM templates. Closes #26.

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "v-calendar",
"version": "0.4.2",
"version": "0.4.3",
"description": "A clean and extendable plugin for building simple attributed calendars in Vue.js.",
"keywords": [
"vue",
Expand Down
4 changes: 2 additions & 2 deletions src/components/CalendarPane.vue
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,8 @@
:style='weekdayStyle_'>
<!--Weekday labels-->
<div
v-for='weekday in weekdayLabels_'
:key='weekday'
v-for='(weekday, i) in weekdayLabels_'
:key='i + 1'
class='c-weekday'>
{{ weekday }}
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/components/CalendarWeeks.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<div
class='c-week'
v-for='(week, i) in weeks'
:key='i'
:key='i + 1'
@touchstart.passive='$emit("touchstart", $event)'
@touchmove.passive='$emit("touchmove", $event)'
@touchend.passive='$emit("touchend", $event)'>
Expand Down

0 comments on commit ae5faa1

Please sign in to comment.