Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

close wp comment ourself instead of waiting for repaint

ulferts3e619e78c86c
diff --git a/frontend/src/app/components/work-packages/work-package-comment/work-package-comment.component.ts b/frontend/src/app/components/work-packages/work-package-comment/work-package-comment.component.ts
index 4dceedcad39..bc58f04fa87 100644
--- a/frontend/src/app/components/work-packages/work-package-comment/work-package-comment.component.ts
+++ b/frontend/src/app/components/work-packages/work-package-comment/work-package-comment.component.ts
@@ -160,7 +160,7 @@ export class WorkPackageCommentComponent extends WorkPackageCommentFieldHandler
this.wpLinkedActivities.require(this.workPackage, true);
this.wpCacheService.updateWorkPackage(this.workPackage);
this.inFlight = false;
- this.focus();
+ this.deactivate(true);
})
.catch((error:any) => {
this.inFlight = false;
diff --git a/frontend/src/app/modules/fields/edit/field-types/formattable-edit-field.component.ts b/frontend/src/app/modules/fields/edit/field-types/formattable-edit-field.component.ts
index 408a8e4656a..9956c2b7cda 100644
--- a/frontend/src/app/modules/fields/edit/field-types/formattable-edit-field.component.ts
+++ b/frontend/src/app/modules/fields/edit/field-types/formattable-edit-field.component.ts
@@ -26,7 +26,6 @@
// ++
import {Component, OnInit, ViewChild, ChangeDetectionStrategy} from "@angular/core";
-import {PathHelperService} from "core-app/modules/common/path-helper/path-helper.service";
import {EditFieldComponent} from "core-app/modules/fields/edit/edit-field.component";
import {OpCkeditorComponent} from "core-app/modules/common/ckeditor/op-ckeditor.component";
import {ICKEditorContext, ICKEditorInstance} from "core-app/modules/common/ckeditor/ckeditor-setup.service";