Skip to content
Snippets Groups Projects
Commit 63c9d790 authored by Lukas Haase's avatar Lukas Haase
Browse files

when commentsfilter empty, do not show any comment

parent 5b4ccf1a
Branches
Tags
No related merge requests found
...@@ -299,7 +299,13 @@ export class QuestionWallComponent implements OnInit, AfterViewInit, OnDestroy { ...@@ -299,7 +299,13 @@ export class QuestionWallComponent implements OnInit, AfterViewInit, OnDestroy {
this.filterFunction = filter; this.filterFunction = filter;
this.commentsFilter = this.commentsFilteredByTime.filter(this.filterFunction); this.commentsFilter = this.commentsFilteredByTime.filter(this.filterFunction);
this.hasFilter = true; this.hasFilter = true;
setTimeout(() => this.focusFirstComment(), 0); setTimeout(() => {
if (this.commentsFilter.length <= 0) {
this.commentFocus = null;
} else {
this.focusFirstComment();
}
}, 0);
} }
focusFirstComment() { focusFirstComment() {
......
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