0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-03-11 02:12:21 -05:00

Fixed bugs with textarea focus on disabled states

This commit is contained in:
Fabien O'Carroll 2024-09-19 15:41:58 +07:00 committed by Fabien 'egg' O'Carroll
parent bd2a0369ed
commit 0cf5d11bf2

View file

@ -62,7 +62,6 @@ const APReplyBox: React.FC<APTextAreaProps> = ({
);
async function handleClick(event: React.MouseEvent) {
event.preventDefault();
await replyMutation.mutate({id: object.id, content: textValue}, {
onSuccess(activity) {
setTextValue('');
@ -111,6 +110,7 @@ const APReplyBox: React.FC<APTextAreaProps> = ({
onBlur={handleBlur}
onChange={handleChange}
onFocus={handleFocus}
disabled={replyMutation.isLoading}
{...props}>
</textarea>
</FormPrimitive.Control>