File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -117,9 +117,11 @@ export class CommentReply<T extends IRange | ICellRange> extends Disposable {
117
117
this . setCommentEditorDecorations ( ) ;
118
118
119
119
// Only add the additional step of clicking a reply button to expand the textarea when there are existing comments
120
- if ( hasExistingComments ) {
120
+ if ( this . _pendingComment ) {
121
+ this . expandReplyArea ( ) ;
122
+ } else if ( hasExistingComments ) {
121
123
this . createReplyButton ( this . commentEditor , this . form ) ;
122
- } else if ( focus && ( ( this . _commentThread . comments && this . _commentThread . comments . length === 0 ) || this . _pendingComment ) ) {
124
+ } else if ( focus && ( this . _commentThread . comments && this . _commentThread . comments . length === 0 ) ) {
123
125
this . expandReplyArea ( ) ;
124
126
}
125
127
this . _error = dom . append ( this . form , dom . $ ( '.validation-error.hidden' ) ) ;
You can’t perform that action at this time.
0 commit comments