audio streaming app plyr.fm
38
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix: stop liker strip clicks from triggering track playback (#1305)

The strip lives inside the TrackItem play button. Clicking +N or ×
was bubbling up to the outer button's onclick, starting playback
before the expand/collapse could land. Stop click+keydown
propagation at the LikersStrip root so all interaction inside the
strip (avatar navigation, +N expand, × collapse) stays contained.

Co-authored-by: Claude Opus 4 (1M context) <noreply@anthropic.com>

authored by

nate nowack
Claude Opus 4 (1M context)
and committed by
GitHub
46d71fd4 d94da7f3

+6
+6
frontend/src/lib/components/LikersStrip.svelte
··· 110 110 } 111 111 </script> 112 112 113 + <!-- stop clicks and keyboard activations from bubbling to an enclosing 114 + interactive surface (e.g. the TrackItem play button). otherwise clicking 115 + +N or × would also trigger track playback. --> 116 + <!-- svelte-ignore a11y_no_static_element_interactions --> 113 117 <span 114 118 class="likers-strip" 115 119 class:expanded 116 120 class:loading 117 121 bind:this={container} 118 122 aria-live="polite" 123 + onclick={(e) => e.stopPropagation()} 124 + onkeydown={(e) => e.stopPropagation()} 119 125 > 120 126 <AvatarStack 121 127 users={usersForStack}