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

Bug/59279 the comment box remains open and does not blur on submitting comment (#17209)

jjabari-op79fe6f772a73
diff --git a/frontend/src/stimulus/controllers/dynamic/work-packages/activities-tab/index.controller.ts b/frontend/src/stimulus/controllers/dynamic/work-packages/activities-tab/index.controller.ts
index c3a7cd3a307..8f8a7d36015 100644
--- a/frontend/src/stimulus/controllers/dynamic/work-packages/activities-tab/index.controller.ts
+++ b/frontend/src/stimulus/controllers/dynamic/work-packages/activities-tab/index.controller.ts
@@ -647,8 +647,8 @@ export default class IndexController extends Controller {
if (!this.journalsContainerTarget) return;
this.clearEditor();
- this.handleEditorVisibility();
- this.adjustJournalsContainer();
+ this.hideEditor();
+ this.resetJournalsContainerMargins();
setTimeout(() => {
if (this.isMobile() && !this.isWithinNotificationCenter()) {
@@ -667,19 +667,11 @@ export default class IndexController extends Controller {
this.saveInProgress = false;
}
- private handleEditorVisibility():void {
- if (this.isMobile()) {
- this.hideEditorIfEmpty();
- } else {
- this.focusEditor();
- }
- }
-
- private adjustJournalsContainer():void {
+ private resetJournalsContainerMargins():void {
if (!this.journalsContainerTarget) return;
this.journalsContainerTarget.style.marginBottom = '';
- this.journalsContainerTarget.classList.add('work-packages-activities-tab-index-component--journals-container_with-input-compensation');
+ this.journalsContainerTarget.classList.add('work-packages-activities-tab-index-component--journals-container_with-initial-input-compensation');
}
private setLastServerTimestampViaHeaders(headers:Headers) {