Skip to content

Commit be468d1

Browse files
fix: add missing :key attributes to v-for
fix #778
1 parent 25433fb commit be468d1

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

dprint.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,4 +52,4 @@
5252
"https://plugins.dprint.dev/g-plane/markup_fmt-v0.23.0.wasm",
5353
"https://plugins.dprint.dev/g-plane/pretty_yaml-v0.5.1.wasm"
5454
]
55-
}
55+
}

website/src/components/editors/EditorWithPanel.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,4 +93,4 @@ const emits = defineEmits<{
9393
margin-top: -1em;
9494
overflow-y: auto;
9595
}
96-
</style>
96+
</style>

website/src/components/utils/Tabs.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ const Wrapper = defineComponent({
2525
:class="{ active: modelValue === mode }"
2626
v-for="(tabText, mode) in modeText"
2727
@click="switchTab(mode)"
28+
:key="mode"
2829
>
2930
{{ tabText }}
3031
</a>
@@ -33,7 +34,7 @@ const Wrapper = defineComponent({
3334
</div>
3435
</div>
3536
<div class="tab-content">
36-
<template v-for="(_, mode) in modeText">
37+
<template v-for="(_, mode) in modeText" :key="mode">
3738
<transition>
3839
<keep-alive>
3940
<Wrapper class="content-wrapper" v-if="modelValue === mode">

0 commit comments

Comments
 (0)