From 8ae5e6831c59da74e3808a243c6e1bcfcea24653 Mon Sep 17 00:00:00 2001 From: leejinho Date: Wed, 8 Jan 2020 16:54:37 +0900 Subject: [PATCH] =?UTF-8?q?#=20=EC=9D=B4=EC=8A=88=EC=82=AC=ED=95=AD=20133?= =?UTF-8?q?=20=EC=AA=BD=EC=B0=8C=20=EC=9D=B4=EB=AF=B8=EC=A7=80=20=EC=84=A0?= =?UTF-8?q?=ED=83=9D=ED=99=94=EB=A9=B4=EC=97=90=EC=84=9C=20=EC=9D=B4?= =?UTF-8?q?=EB=AF=B8=EC=A7=80=EB=A7=8C=20=EB=B3=B4=EC=97=AC=EC=A3=BC?= =?UTF-8?q?=EC=A7=80=20=EC=95=8A=EC=9D=8C=20::=20=EC=9D=B4=EB=AF=B8?= =?UTF-8?q?=EC=A7=80=EB=8A=94=20=EC=9D=B4=EB=AF=B8=EC=A7=80=EB=A7=8C=20?= =?UTF-8?q?=EB=B3=B4=EC=97=AC=EC=A7=80=EA=B3=A0,=20=EC=B2=A8=EB=B6=80?= =?UTF-8?q?=ED=8C=8C=EC=9D=BC=EC=9D=80=20=EC=A0=84=EC=B2=B4=ED=8C=8C?= =?UTF-8?q?=EC=9D=BC=EC=9D=84=20=EC=84=A0=ED=83=9D=ED=95=A0=20=EC=88=98=20?= =?UTF-8?q?=EC=9E=88=EB=8F=84=EB=A1=9D=20=EC=88=98=EC=A0=95.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/lib/components/write.component.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/projects/ucap-webmessenger-ui-message/src/lib/components/write.component.ts b/projects/ucap-webmessenger-ui-message/src/lib/components/write.component.ts index 323cafd9..1e0f69eb 100644 --- a/projects/ucap-webmessenger-ui-message/src/lib/components/write.component.ts +++ b/projects/ucap-webmessenger-ui-message/src/lib/components/write.component.ts @@ -151,6 +151,7 @@ export class WriteComponent implements OnInit, OnDestroy, AfterViewInit { } onClickImage() { + this.fileInput.nativeElement.setAttribute('accept', 'image/*'); this.fileInput.nativeElement.click(); const self = this; this.fileInput.nativeElement.onchange = async () => { @@ -172,6 +173,7 @@ export class WriteComponent implements OnInit, OnDestroy, AfterViewInit { } onClickAttachment() { + this.fileInput.nativeElement.removeAttribute('accept'); this.fileInput.nativeElement.click(); const self = this; this.fileInput.nativeElement.onchange = () => { @@ -519,7 +521,7 @@ export class WriteComponent implements OnInit, OnDestroy, AfterViewInit { employeeType: EmployeeType.Regular, nickName: '', - order:'' + order: '' }; } }