From bac2e90d23713b1eac3a08b204ebf0ba7c97629a Mon Sep 17 00:00:00 2001 From: Michael Date: Mon, 22 Jun 2020 14:58:14 +0200 Subject: [PATCH] added right focus for tasks --- src/app/task-form/task-form.component.html | 2 +- src/app/task-form/task-form.component.ts | 1 + src/app/userstory-form/userstory-form.component.html | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/app/task-form/task-form.component.html b/src/app/task-form/task-form.component.html index 4b01472..6bb32ef 100644 --- a/src/app/task-form/task-form.component.html +++ b/src/app/task-form/task-form.component.html @@ -22,7 +22,7 @@
+ [(ngModel)]="task.title" id="titleField">
diff --git a/src/app/task-form/task-form.component.ts b/src/app/task-form/task-form.component.ts index 60dd90b..8a9fab7 100644 --- a/src/app/task-form/task-form.component.ts +++ b/src/app/task-form/task-form.component.ts @@ -28,6 +28,7 @@ export class TaskFormComponent implements OnInit { } else { this.editing = true; } + document.getElementById('titleField').focus(); } onSubmit() { diff --git a/src/app/userstory-form/userstory-form.component.html b/src/app/userstory-form/userstory-form.component.html index 1d86b8b..e23e626 100644 --- a/src/app/userstory-form/userstory-form.component.html +++ b/src/app/userstory-form/userstory-form.component.html @@ -13,7 +13,7 @@
-