fix(userplaylists): issue where selected songs wouldnt play
This commit is contained in:
parent
50cd138f3b
commit
9fd1256da3
1 changed files with 4 additions and 0 deletions
4
js/ui.js
4
js/ui.js
|
|
@ -2523,6 +2523,10 @@ export class UIRenderer {
|
|||
let trackItems = Array.from(container.querySelectorAll('.track-item'));
|
||||
|
||||
trackItems.forEach((item, index) => {
|
||||
// Re-bind data to cloned elements
|
||||
if (tracks[index]) {
|
||||
trackDataStore.set(item, tracks[index]);
|
||||
}
|
||||
item.draggable = true;
|
||||
item.dataset.index = index;
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue