Skip to content

Commit 1417a35

Browse files
luisDanielRoviraContrerasulivz
authored andcommittedApr 25, 2018
fix: potential duplicate iteration keys at dropdown (#249)
1 parent 65b265d commit 1417a35

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎lib/default-theme/DropdownLink.vue

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
<ul class="nav-dropdown" v-show="open">
99
<li
1010
class="dropdown-item"
11-
v-for="subItem in item.items"
12-
:key="subItem.link">
11+
v-for="(subItem, index) in item.items"
12+
:key="subItem.link || index">
1313
<h4 v-if="subItem.type === 'links'">{{ subItem.text }}</h4>
1414
<ul class="dropdown-subitem-wrapper" v-if="subItem.type === 'links'">
1515
<li

0 commit comments

Comments
 (0)
Please sign in to comment.