mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-03 23:00:14 -05:00
Fixed animation of love heart bump
Resetting the isClicked state immediately would cancel the animation
This commit is contained in:
parent
2749296fea
commit
7ee15044e9
1 changed files with 0 additions and 3 deletions
|
@ -149,9 +149,6 @@ const FeedItemStats: React.FC<{
|
|||
|
||||
setIsLiked(!isLiked);
|
||||
|
||||
setIsClicked(false); // Reset the animation class after request completed
|
||||
|
||||
// Call the requested `onLikeClick`
|
||||
onLikeClick();
|
||||
setTimeout(() => setIsClicked(false), 300);
|
||||
};
|
||||
|
|
Loading…
Add table
Reference in a new issue