mirror of
https://github.com/overleaf/overleaf.git
synced 2025-04-22 00:48:25 +00:00
Merge pull request #23738 from overleaf/ae-blur-handler-timeout
Wrap "Add Comment" blur action in setTimeout GitOrigin-RevId: 632555d94c8a33a095f3b9a10089714eeae2d962
This commit is contained in:
parent
3a9587797d
commit
64bb822e41
1 changed files with 3 additions and 1 deletions
|
@ -64,7 +64,9 @@ export const ReviewPanelAddComment = memo<{
|
|||
|
||||
const handleBlur = useCallback(() => {
|
||||
if (content === '') {
|
||||
handleClose()
|
||||
window.setTimeout(() => {
|
||||
handleClose()
|
||||
})
|
||||
}
|
||||
}, [content, handleClose])
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue