Skip to content

Commit

Permalink
stop propagation on click
Browse files Browse the repository at this point in the history
  • Loading branch information
sharunkumar committed Feb 19, 2024
1 parent 50014ef commit b5b0d15
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/features/post/inFeed/large/LargePost.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,10 @@ export default function LargePost({ post }: PostProps) {
<ActionButton>
<IonIcon
icon={shareSocialOutline}
onClick={() => share(post.post)}
onClick={(e) => {
e.stopPropagation();
share(post.post);
}}
/>
</ActionButton>
<SaveButton postId={post.post.id} />
Expand Down

0 comments on commit b5b0d15

Please sign in to comment.