Skip to content
Snippets Groups Projects
Commit fffe9d31 authored by Ruben Bimberg's avatar Ruben Bimberg :computer: Committed by Klaus-Dieter Quibeldey-Cirkel
Browse files

Fixed wrong merge results

parent cc67a8d5
No related merge requests found
......@@ -34,7 +34,7 @@ export class QuestionWallComponent implements OnInit, AfterViewInit, OnDestroy {
commentsCountQuestions = 0;
commentsCountUsers = 0;
unreadComments = 0;
focusIncommingComments = false;
focusIncommingComments = true;
timeUpdateInterval;
keySupport: QuestionWallKeyEventSupport;
hasFilter = false;
......@@ -319,7 +319,13 @@ export class QuestionWallComponent implements OnInit, AfterViewInit, OnDestroy {
this.filterFunction = filter;
this.commentsFilter = this.commentsFilteredByTime.filter(this.filterFunction);
this.hasFilter = true;
setTimeout(() => this.focusFirstComment(), 0);
setTimeout(() => {
if (this.commentsFilter.length <= 0) {
this.commentFocus = null;
} else {
this.focusFirstComment();
}
}, 0);
this.updateCommentsCountOverview();
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment