[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]
pull/5797/head
Oliver Günther 7 years ago
parent 2b85190d88
commit e5a5baa8fe
No known key found for this signature in database
GPG Key ID: 88872239EB414F99
  1. 4
      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() {

Loading…
Cancel
Save