fix: prevent click event propagation on like button
This commit is contained in:
parent
e056f61b4a
commit
d90f6f8261
1 changed files with 1 additions and 0 deletions
|
|
@ -121,6 +121,7 @@ export default function Likes({ event }: { event: Event }) {
|
||||||
: 'bg-muted/80 text-muted-foreground cursor-pointer hover:bg-primary/40 hover:border-primary hover:text-foreground',
|
: 'bg-muted/80 text-muted-foreground cursor-pointer hover:bg-primary/40 hover:border-primary hover:text-foreground',
|
||||||
(isLongPressing === key || isCompleted === key) && 'border-primary bg-primary/20'
|
(isLongPressing === key || isCompleted === key) && 'border-primary bg-primary/20'
|
||||||
)}
|
)}
|
||||||
|
onClick={(e) => e.stopPropagation()}
|
||||||
onMouseDown={() => handleMouseDown(key)}
|
onMouseDown={() => handleMouseDown(key)}
|
||||||
onMouseUp={handleMouseUp}
|
onMouseUp={handleMouseUp}
|
||||||
onMouseLeave={handleMouseLeave}
|
onMouseLeave={handleMouseLeave}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue