Skip to content
Snippets Groups Projects
Commit d6045f8f authored by Klaus-Dieter Quibeldey-Cirkel's avatar Klaus-Dieter Quibeldey-Cirkel
Browse files

Merge branch '595-questionwall-fix-comment-still-visible-when-filter-applied' into 'staging'

when commentsfilter empty, do not show any comment

Closes #595

See merge request arsnova/frag.jetzt!538
parents 5b4ccf1a 63c9d790
No related merge requests found
......@@ -299,7 +299,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);
}
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