Skip to content

Commit

Permalink
Merge pull request #4 from DanielPe05/patch-1
Browse files Browse the repository at this point in the history
Fix :key using non-primitive value as key
  • Loading branch information
javisperez authored Jul 24, 2017
2 parents 366d60b + ad2bca2 commit 034cd45
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/component.vue
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ export default {
<template>
<transition tag="div" name="vuedal">
<div class="vuedals" v-show="vuedals.length">
<div class="vuedal" v-for="(vuedal, index) in vuedals" :key="vuedal" :class="getCssClasses(index)">
<div class="vuedal" v-for="(vuedal, index) in vuedals" :key="index" :class="getCssClasses(index)">
<header v-if="(vuedal.title || vuedal.dismisable) && !vuedal.header">
<span class="title">{{ vuedal.title }}</span>
<span @click="dismiss()" v-if="vuedal.dismisable" class="close">&times;</span>
Expand Down

0 comments on commit 034cd45

Please sign in to comment.