Skip to content

Commit

Permalink
[all]: Add and fix keys for elements in <transition-group>
Browse files Browse the repository at this point in the history
  • Loading branch information
ThrRip committed Dec 5, 2023
1 parent c694da1 commit 866774a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
16 changes: 8 additions & 8 deletions packages/admin/components/PlaylistList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@
>
<input
v-if="props.type === 'main' && modifyingTarget.id === song.$id && modifyingTarget.field === 'name'"
:key="`${song.$id}-modifyingInput-name`"
key="input"
ref="modifyingInput"
type="text"
class="z-30 w-full h-2/3 bg-white
Expand All @@ -254,7 +254,7 @@
@keydown.tab.prevent="modifyNext({ id: song.$id, field: 'name' })"
>
<span
:key="`${song.$id}-name`"
key="text"
class="flex flex-row items-center w-full"
:class="{
'!h-2/3 rounded ring-2 ring-white-alta group-hover:ring-blue ring-offset-[4.5px] ring-offset-white-alta \
Expand Down Expand Up @@ -292,7 +292,7 @@
>
<input
v-if="props.type === 'main' && modifyingTarget.id === song.$id && modifyingTarget.field === 'artist'"
:key="`${song.$id}-modifyingInput-artist`"
key="input"
ref="modifyingInput"
type="text"
class="z-30 w-full h-2/3 bg-white
Expand All @@ -307,7 +307,7 @@
@keydown.tab.prevent="modifyNext({ id: song.$id, field: 'artist' })"
>
<span
:key="`${song.$id}-artist`"
key="text"
class="flex flex-row items-center w-full"
:class="{
'!h-2/3 rounded ring-2 ring-white-alta group-hover:ring-blue ring-offset-[4.5px] ring-offset-white-alta \
Expand Down Expand Up @@ -345,7 +345,7 @@
>
<input
v-if="props.type === 'main' && modifyingTarget.id === song.$id && modifyingTarget.field === 'payment_amount'"
:key="`${song.$id}-modifyingInput-payment_amount`"
key="input"
ref="modifyingInput"
type="text"
class="z-30 w-full h-2/3 text-center bg-white
Expand All @@ -360,7 +360,7 @@
@keydown.tab.prevent="modifyNext({ id: song.$id, field: 'payment_amount' })"
>
<span
:key="`${song.$id}-payment_amount`"
key="text"
class="flex flex-col justify-center items-center h-full"
:class="{
'!h-2/3 rounded ring-2 ring-white-alta group-hover:ring-blue ring-offset-[4.5px] ring-offset-white-alta \
Expand Down Expand Up @@ -406,7 +406,7 @@
>
<input
v-if="props.type === 'main' && modifyingTarget.id === song.$id && modifyingTarget.field === 'language'"
:key="`${song.$id}-modifyingInput-language`"
key="input"
ref="modifyingInput"
type="text"
class="z-30 w-full h-2/3 bg-white
Expand All @@ -420,7 +420,7 @@
$event.target.blur()"
>
<span
:key="`${song.$id}-language`"
key="text"
class="flex flex-row items-center w-full h-full"
:class="{
'!h-2/3 rounded ring-2 ring-white-alta group-hover:ring-blue ring-offset-[4.5px] ring-offset-white-alta \
Expand Down
2 changes: 2 additions & 0 deletions packages/home/app.vue
Original file line number Diff line number Diff line change
Expand Up @@ -262,11 +262,13 @@
>
<font-awesome-icon
v-if="viewPlaylistCopiedSongs.has(song.$id)"
key="copied"
:icon="['fas', 'clipboard-check']"
class="!h-5"
/>
<font-awesome-icon
v-if="viewPlaylistCopyingFailedSongs.has(song.$id)"
key="copying-failed"
:icon="['fas', 'clipboard-question']"
class="!h-5"
/>
Expand Down

0 comments on commit 866774a

Please sign in to comment.