From 36f3adc1aa2e01cf3ff98cd40431648be9974e07 Mon Sep 17 00:00:00 2001 From: Sergey Elpashev Date: Sun, 16 Jun 2024 01:02:15 +0300 Subject: [PATCH] fix: another fix in textarea --- src/app/components/translate_block/translate_block.component.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/app/components/translate_block/translate_block.component.ts b/src/app/components/translate_block/translate_block.component.ts index 8f5ea6f..58520b1 100644 --- a/src/app/components/translate_block/translate_block.component.ts +++ b/src/app/components/translate_block/translate_block.component.ts @@ -40,6 +40,7 @@ export class TranslateBlockComponent implements OnInit { private sendToTranslate(service: ETranslateService = ETranslateService.GOOGLE) { this.translateLoading = true; this.translateService.translate(this.item.english_text, service).subscribe((text) => { + if (this.translatedText) if (this.translatedText.ref) this.translatedText.ref.nativeElement.textContent = text; this.item.translated_text = text; this.isEditing = false; this.translateLoading = false;