fix(artist): add data-track-id attribute for scroll-to-track
The scrollToTrack function queries for [data-track-id] but the attribute was missing on track rows, preventing track focus from context.
This commit is contained in:
1 parent
edfb167393
commit
008ef6e443
1 file changed
+1
@@ -988,6 +988,7 @@
|
||||
class:playing={isActiveTrack}
|
||||
role="button"
|
||||
tabindex="0"
|
||||
data-track-id={track.id}
|
||||
onclick={() => handleTrackPlay(track, index)}
|
||||
onkeydown={(e) => e.key === 'Enter' && handleTrackPlay(track, index)}
|
||||
>
|
||||
|
||||
Reference in new issue
Block a user