fix(purchases): add stopPropagation to per-track download buttons in album detail

Clicking the download icon on a track row also triggered row playback
due to event bubbling. Add e.stopPropagation() to both the normal
download and failed-retry download buttons.
This commit is contained in:
vicrodh committed 2026-02-20 01:43:21 -06:00
1 parent 7bdaa2976f
commit 1ba4622828
1 file changed
+2 -2
@@ -402,7 +402,7 @@
{:else if status === 'failed'}
<button
class="download-track-btn failed"
onclick={() => promptForFolder(track.id)}
onclick={(e) => { e.stopPropagation(); promptForFolder(track.id); }}
title={$t('purchases.failed')}
>
<AlertTriangle size={14} />
@@ -410,7 +410,7 @@
{:else if album.downloadable}
<button
class="download-track-btn"
onclick={() => promptForFolder(track.id)}
onclick={(e) => { e.stopPropagation(); promptForFolder(track.id); }}
title={$t('purchases.downloadTrack')}
>
<Download size={14} />