[ISSUE 212] fixed
This commit is contained in:
parent
07e3f8125f
commit
0da7ff2af3
|
@ -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 = '';
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -87,7 +87,6 @@
|
|||
</div>
|
||||
|
||||
<form
|
||||
#replyForm="ngForm"
|
||||
(ngSubmit)="onSend($event)"
|
||||
(keydown.enter)="onSend($event)"
|
||||
fxFlex
|
||||
|
|
|
@ -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() {
|
||||
|
|
Loading…
Reference in New Issue
Block a user