Skip to content

Commit

Permalink
Bug/59279 the comment box remains open and does not blur on submittin…
Browse files Browse the repository at this point in the history
  • Loading branch information
jjabari-op authored Nov 18, 2024
1 parent e498f67 commit 79fe6f7
Showing 1 changed file with 4 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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()) {
Expand All @@ -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) {
Expand Down

0 comments on commit 79fe6f7

Please sign in to comment.