Skip to content

Commit

Permalink
added '}'
Browse files Browse the repository at this point in the history
  • Loading branch information
kryzanivska-nastya committed Dec 23, 2024
1 parent 0d0daf8 commit ee0dccb
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ export class CommentTextareaComponent implements OnInit, AfterViewInit, OnChange
const currentText = this.commentTextarea.nativeElement.textContent.trim();
this.updateLinksInTextarea(currentText);
this.clearPlaceholderIfNeeded();

const range = document.createRange();
const nodeAmount = this.commentTextarea.nativeElement.childNodes.length;
range.setStartAfter(this.commentTextarea.nativeElement.childNodes[nodeAmount - 1]);
Expand Down Expand Up @@ -310,6 +310,7 @@ export class CommentTextareaComponent implements OnInit, AfterViewInit, OnChange
}
}
});
}

private clearPlaceholderIfNeeded(): void {
const currentText = this.commentTextarea?.nativeElement?.textContent?.trim() || '';
Expand Down

0 comments on commit ee0dccb

Please sign in to comment.