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