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:
parent
bd2a0369ed
commit
0cf5d11bf2
1 changed files with 1 additions and 1 deletions
|
@ -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>
|
||||
|
|
Loading…
Add table
Reference in a new issue