diff --git a/components/upload/index.jsx b/components/upload/index.jsx index c3ce31482c..0a68b40053 100644 --- a/components/upload/index.jsx +++ b/components/upload/index.jsx @@ -200,9 +200,8 @@ const AntUpload = React.createClass({ uploadList = ; } if (type === 'drag') { - let dragUploadingClass = this.state.fileList.some((file) => { - return file.status === 'uploading'; - }) ? `${prefixCls}-drag-uploading` : ''; + let dragUploadingClass = this.state.fileList.some(file => file.status === 'uploading') + ? `${prefixCls}-drag-uploading` : ''; let draggingClass = this.state.dragState === 'dragover' ? `${prefixCls}-drag-hover` : '';