fix(userplaylists): issue where selected songs wouldnt play

This commit is contained in:
Samidy 2026-01-31 08:19:29 +03:00
parent 50cd138f3b
commit 9fd1256da3

View file

@ -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;
});