Skip to content
Snippets Groups Projects
Commit 172942fd authored by Mohammad Alayoub's avatar Mohammad Alayoub
Browse files

fix bug after collapsing the comments

parent 5da5db69
No related merge requests found
...@@ -219,7 +219,7 @@ ...@@ -219,7 +219,7 @@
<div *ngFor="let question of keyword.comments"> <div *ngFor="let question of keyword.comments">
<mat-divider></mat-divider> <mat-divider></mat-divider>
<app-topic-dialog-comment [question]="question.body" [keyword]="keyword.keyword" [maxShowedCharachters]="140" <app-topic-dialog-comment [question]="question.body" [keyword]="keyword.keyword" [maxShowedCharachters]="140"
[isCollapsed]="!panelOpenState" [profanityFilter]="profanityFilter"></app-topic-dialog-comment> [profanityFilter]="profanityFilter"></app-topic-dialog-comment>
</div> </div>
<div *ngIf="isCreatorOrMod"> <div *ngIf="isCreatorOrMod">
......
...@@ -11,8 +11,8 @@ export class TopicDialogCommentComponent implements OnInit { ...@@ -11,8 +11,8 @@ export class TopicDialogCommentComponent implements OnInit {
@Input() question: string; @Input() question: string;
@Input() keyword: string ; @Input() keyword: string ;
@Input() maxShowedCharachters: number; @Input() maxShowedCharachters: number;
@Input() isCollapsed = false;
@Input() profanityFilter = true; @Input() profanityFilter = true;
isCollapsed = false;
public badWords = []; public badWords = [];
questionWithoutProfanity: string = undefined; questionWithoutProfanity: string = undefined;
......
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