[ISSUE 212] fixed

This commit is contained in:
richard-loafle 2020-02-06 13:52:17 +09:00
parent 07e3f8125f
commit 0da7ff2af3
3 changed files with 3 additions and 7 deletions

View File

@ -471,7 +471,7 @@ export class MessagesComponent implements OnInit, OnDestroy, AfterViewInit {
// Chat Formfield Clear..
if (!!this.chatForm) {
this.chatForm.replyForm.reset();
this.chatForm.replyInput.nativeElement.value = '';
}
}

View File

@ -87,7 +87,6 @@
</div>
<form
#replyForm="ngForm"
(ngSubmit)="onSend($event)"
(keydown.enter)="onSend($event)"
fxFlex

View File

@ -37,9 +37,6 @@ export class FormComponent implements OnInit {
@Output()
clipboardPaste = new EventEmitter<ClipboardEvent>();
@ViewChild('replyForm', { static: false })
replyForm: NgForm;
@ViewChild('replyInput', { static: false })
replyInput: ElementRef<HTMLTextAreaElement>;
@ -57,8 +54,8 @@ export class FormComponent implements OnInit {
onSend(event: Event) {
event.preventDefault();
this.send.emit(this.replyForm.form.value.message);
this.replyForm.reset();
this.send.emit(this.replyInput.nativeElement.value);
this.replyInput.nativeElement.value = '';
}
onClickFileInput() {