From ec82dfc8f2001c8d620233eea4a41a357b386c2d Mon Sep 17 00:00:00 2001 From: Ruben Bimberg <ruben.bimberg@mni.thm.de> Date: Thu, 16 Sep 2021 13:18:17 +0200 Subject: [PATCH] Fix comment focus and keyword display --- .../components/shared/comment-list/comment-list.component.ts | 1 + src/app/components/shared/comment/comment.component.html | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/app/components/shared/comment-list/comment-list.component.ts b/src/app/components/shared/comment-list/comment-list.component.ts index 231859ccc..15aec4692 100644 --- a/src/app/components/shared/comment-list/comment-list.component.ts +++ b/src/app/components/shared/comment-list/comment-list.component.ts @@ -493,6 +493,7 @@ export class CommentListComponent implements OnInit, OnDestroy { } votedComment(voteInfo: string) { + this.focusCommentId = null; setTimeout(() => this.focusCommentId = voteInfo, 100); } diff --git a/src/app/components/shared/comment/comment.component.html b/src/app/components/shared/comment/comment.component.html index 04f2f9366..b188d2f17 100644 --- a/src/app/components/shared/comment/comment.component.html +++ b/src/app/components/shared/comment/comment.component.html @@ -369,7 +369,7 @@ *ngFor="let keyword of sortKeywords(comment.keywordsFromQuestioner); let odd = odd; let even = even" [class.keywords-alternate]="odd" [class.keywords-even]="even"> - <span (click)="this.clickedOnKeyword.emit(keyword.lemma)" class="keyword-span">{{keyword.lemma}}</span> + <span (click)="this.clickedOnKeyword.emit(keyword.text)" class="keyword-span">{{keyword.text}}</span> </mat-list-item> </mat-list> </mat-menu> -- GitLab