1
0
Fork 0
mirror of https://github.com/FrankerFaceZ/FrankerFaceZ.git synced 2025-06-27 21:05:53 +00:00

Fix required key in Vue component iteration

This commit is contained in:
Dan Salvato 2024-02-15 13:05:24 -07:00
parent 9b4a0da10b
commit a3dcbd62bc

View file

@ -3,10 +3,11 @@
class="toggle-switch" class="toggle-switch"
> >
<template <template
v-for="item in items" v-for="(item, index) in items"
> >
<input <input
:id="item.value" :id="item.value"
:key="index"
:value="item.value" :value="item.value"
:name="groupName" :name="groupName"
type="radio" type="radio"
@ -14,6 +15,7 @@
@click="toggle" @click="toggle"
> >
<label <label
:key="index"
:for="item.value" :for="item.value"
type="radio" type="radio"
> >