+
+ private patchTextValue (text: string, focus: boolean) {
+ setTimeout(() => {
+ if (focus) {
+ this.textareaElement.nativeElement.focus()
+ }
+
+ this.textareaElement.nativeElement.scrollIntoView({ behavior: 'smooth', block: 'center', inline: 'nearest' })
+ })
+
+ this.form.patchValue({ text })
+ }