From d79323b53c190664ce040d1b9e2267b2ce83070b Mon Sep 17 00:00:00 2001 From: "Aries.lsy" <”Aries.lsy@fanruan.com“> Date: Fri, 4 Nov 2022 16:31:20 +0800 Subject: [PATCH] =?UTF-8?q?REPORT-83276=20fix:=E4=BF=AE=E5=A4=8DFileUpload?= =?UTF-8?q?=E7=BB=84=E4=BB=B6errorInfo=E6=9C=AA=E9=9A=90=E8=97=8F=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/modules/components/file_upload/file_upload.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/modules/components/file_upload/file_upload.ts b/src/modules/components/file_upload/file_upload.ts index 9a6b406..01892c0 100644 --- a/src/modules/components/file_upload/file_upload.ts +++ b/src/modules/components/file_upload/file_upload.ts @@ -157,8 +157,6 @@ export class FileUpload extends BI.Widget { handler: function () { NProgress.set(0.0); self.xhr.abort(); - self.uploadButton.setEnable(true); - self.fileInfo.setVisible(false); self.store.setFileName(''); self.clearInfo(); self.fireEvent(FileUpload.EVENT_CLEAR_FILE); @@ -308,6 +306,7 @@ export class FileUpload extends BI.Widget { public clearInfo() { this.uploadButton.setEnable(true); this.fileInfo.setVisible(false); + this.errorInfo.setVisible(false); this.textEditor.setValue(''); this.options.attachId = ''; }