0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-10 23:36:14 -05:00

Fixed post reply button

ref b9d02f8051beb9120a282bcbf0f70440c2a3c39e

Because we disabled the button on blue of the textarea, it was being disabled
before the click would be handled! Using the mousedown event means that our
event gets handled before the blur.
This commit is contained in:
Fabien O'Carroll 2024-09-19 15:30:48 +07:00 committed by Fabien 'egg' O'Carroll
parent 78bb1461a8
commit 8cc3646c29

View file

@ -116,7 +116,7 @@ const APReplyBox: React.FC<APTextAreaProps> = ({
</div>
</FormPrimitive.Root>
<div className='absolute bottom-[6px] right-[9px] flex space-x-4 transition-[opacity] duration-150'>
<Button color='black' disabled={buttonDisabled} id='post' label='Post' loading={replyMutation.isLoading} size='sm' onClick={handleClick} />
<Button color='black' disabled={buttonDisabled} id='post' label='Post' loading={replyMutation.isLoading} size='sm' onMouseDown={handleClick} />
</div>
</div>
</div>