From e5a5baa8fef1882fd893d3338b72c54a94127726 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Oliver=20G=C3=BCnther?= Date: Wed, 26 Jul 2017 13:00:42 +0200 Subject: [PATCH] [25973] Focus comment field This was no longer the case since the inner edit field is not autofocused https://community.openproject.com/wp/25973 [ci skip] --- .../work-package-comment/work-package-comment.directive.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/frontend/app/components/work-packages/work-package-comment/work-package-comment.directive.ts b/frontend/app/components/work-packages/work-package-comment/work-package-comment.directive.ts index 258a4a6540..54bbc8ae63 100644 --- a/frontend/app/components/work-packages/work-package-comment/work-package-comment.directive.ts +++ b/frontend/app/components/work-packages/work-package-comment/work-package-comment.directive.ts @@ -95,7 +95,9 @@ export class CommentFieldDirectiveController { public activate(withText?:string) { this._forceFocus = true; this.field.initializeFieldValue(withText); - return this.editing = true; + this.editing = true; + + this.$timeout(() => this.$element.find('.wp-inline-edit--field').focus()); } public handleUserSubmit() {