0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-20 22:42:53 -05:00

Fixed blinking when bluring reply form

fixes https://github.com/TryGhost/Team/issues/1749

Transition syntax was not working, and unused. The transition component also caused a delay, which caused the blinking.
This commit is contained in:
Simon Backx 2022-08-05 15:23:52 +02:00
parent a84bcc3d30
commit a1a0bf6723

View file

@ -118,19 +118,11 @@ const Comment = ({updateIsEditing = null, isEditing, ...props}) => {
<Replies comment={comment} />
</div>
}
<Transition
show={isInReplyMode}
enter="transition duration-500 delay-50 ease-in-out"
enterFrom="opacity-0"
enterTo="opacity-100"
leave="transition-none duration-0"
leaveFrom="opacity-100"
leaveTo="opacity-0"
>
{isInReplyMode &&
<div className="ml-14 my-10">
<Form parent={comment} close={closeReplyMode} isReply={true} />
</div>
</Transition>
}
</Transition>
);
}