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:
David 2025-02-20 10:55:03 +00:00 committed by Copybot
parent 3a9587797d
commit 64bb822e41

View file

@ -64,7 +64,9 @@ export const ReviewPanelAddComment = memo<{
const handleBlur = useCallback(() => {
if (content === '') {
handleClose()
window.setTimeout(() => {
handleClose()
})
}
}, [content, handleClose])