Properly keep track of song items (fixes #427)

This commit is contained in:
An Phan 2016-11-16 10:48:36 +08:00
parent 98b633df57
commit 43467e3393
No known key found for this signature in database
GPG key ID: 05536BB4BCDC02A2
2 changed files with 1 additions and 2 deletions

View file

@ -3,7 +3,6 @@
class="song-item"
draggable="true"
:data-song-id="song.id"
key="id"
@click="$parent.rowClick(song.id, $event)"
@dblclick.prevent="playRightAwayyyyyyy"
@dragstart="$parent.dragStart(song.id, $event)"

View file

@ -35,7 +35,7 @@
</thead>
<tbody>
<tr is="song-item" v-for="item in displayedItems" :song="item" ref="rows"/>
<tr is="song-item" v-for="item in displayedItems" :song="item" ref="rows" :key="item.id"/>
</tbody>
</table>