Skip to content

Commit

Permalink
fix: add a line of javacript to fix issue with favoriting a video per…
Browse files Browse the repository at this point in the history
… issue 703
  • Loading branch information
carddev81 committed Jan 30, 2025
1 parent 93c404d commit d0b3659
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion frontend/src/Components/VideoCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,11 @@ export default function VideoCard({
<div
className="tooltip tooltip-top absolute right-2 top-2 w-6 h-6"
data-tip="Favorite video"
onClick={() => void handleToggleAction('favorite')}
onClick={(e) => {
e.stopPropagation();
void handleToggleAction('favorite');
}
}
>
{bookmark}
</div>
Expand Down

0 comments on commit d0b3659

Please sign in to comment.