Browse Source

Merge pull request #6297 in DEC/decision-webui-dcm from release/11.0 to bugfix/11.0

* commit 'cd073c4df7f4f8e67acbd34db547f3b5aa53556a':
  REPORT-83276 fix:修复FileUpload组件errorInfo未隐藏问题
bugfix/11.0
superman 2 years ago
parent
commit
1740711f7a
  1. 3
      src/modules/components/file_upload/file_upload.ts

3
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 = '';
}

Loading…
Cancel
Save