From b3fb51e06db59934986570cbbc42c4ee589084f0 Mon Sep 17 00:00:00 2001 From: madhukar23 <30654750+madhukar23@users.noreply.github.com> Date: Tue, 12 Dec 2017 19:52:02 +0530 Subject: [PATCH] [ADF-2069] Error is displayed on console when adding a description to a task. (#2779) * Fixed the console error coming while adding description or priority in task details --- lib/core/card-view/card-view-textitem.component.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/core/card-view/card-view-textitem.component.ts b/lib/core/card-view/card-view-textitem.component.ts index 8507473f94..37c648350b 100644 --- a/lib/core/card-view/card-view-textitem.component.ts +++ b/lib/core/card-view/card-view-textitem.component.ts @@ -54,7 +54,9 @@ export class CardViewTextItemComponent implements OnChanges { setEditMode(editStatus: boolean): void { this.inEdit = editStatus; setTimeout(() => { - this.editorInput.nativeElement.click(); + if(this.editorInput) { + this.editorInput.nativeElement.click(); + } }, 0); }