Skip to content
This repository has been archived by the owner on Oct 4, 2023. It is now read-only.

Commit

Permalink
Stop propagation on repost button click in tracks tables (#2249)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kyle-Shanks authored Nov 11, 2022
1 parent 5964998 commit dc11096
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/web/src/components/tracks-table/TracksTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,10 @@ export const TracksTable = ({
className={cn(styles.tableActionButton, {
[styles.active]: track.has_current_user_reposted
})}
onClick={() => onClickRepost?.(track)}
onClick={(e) => {
onClickRepost?.(track)
e.stopPropagation()
}}
reposted={track.has_current_user_reposted}
/>
</div>
Expand Down

0 comments on commit dc11096

Please sign in to comment.