mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-22 19:32:54 +03: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
@ -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…
Reference in New Issue
Block a user