Merge pull request #14746 from overleaf/td-review-panel-empty-comment-edit

React review panel: populate comment box when editing

GitOrigin-RevId: ba284bd419dd507eef17847b5f4c55b8fd8338f5
This commit is contained in:
Tim Down 2023-09-08 15:52:41 +01:00 committed by Copybot
parent a66e1329df
commit 1dc3d12c1d

View file

@ -67,6 +67,7 @@ function Comment({ thread, threadId, comment }: CommentProps) {
{editing ? (
<AutoExpandingTextArea
className="rp-comment-input"
defaultValue={comment.content}
onKeyPress={handleSaveEditOnEnter}
onBlur={handleSaveEdit}
onClick={e => e.stopPropagation()}