We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8bfb6cd commit 4ade2fdCopy full SHA for 4ade2fd
projects/stream-chat-angular/src/lib/message-input/message-input.component.ts
@@ -408,9 +408,15 @@ export class MessageInputComponent
408
}
409
410
private initTextarea() {
411
+ // cleanup previously built textarea
412
+ if (!this.canSendMessages) {
413
+ this.textareaRef = undefined;
414
+ }
415
+
416
if (!this.canSendMessages || this.textareaRef || !this.textareaAnchor) {
417
return;
418
419
420
const componentFactory =
421
this.componentFactoryResolver.resolveComponentFactory(this.textareaType);
422
this.textareaRef =
0 commit comments