Skip to content
This repository was archived by the owner on Dec 30, 2022. It is now read-only.

Commit 80ff944

Browse files
committed
fix(RatingMenu): use unique keys
This warnign came up in Vue 3, but it's still relevant for Vue 2
1 parent 90cf9db commit 80ff944

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/RatingMenu.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
width="24"
4646
height="24"
4747
:class="[suit('starIcon'), suit('starIcon--full')]"
48-
:key="n"
48+
:key="n + '-full'"
4949
>
5050
<use xlink:href="#ais-RatingMenu-starSymbol" />
5151
</svg>
@@ -56,7 +56,7 @@
5656
aria-hidden="true"
5757
width="24"
5858
height="24"
59-
:key="n"
59+
:key="n + '-empty'"
6060
>
6161
<use xlink:href="#ais-RatingMenu-starEmptySymbol" />
6262
</svg>

0 commit comments

Comments
 (0)