(value)
| 53 | } |
| 54 | |
| 55 | handleChange (value) { |
| 56 | const { onChange } = this.props; |
| 57 | if (value === undefined) { |
| 58 | if (this.isCompleted()) { |
| 59 | value = this.getValue(); |
| 60 | } else { |
| 61 | value = new Error(''); |
| 62 | } |
| 63 | } |
| 64 | if (onChange) { |
| 65 | onChange(value); |
| 66 | } |
| 67 | } |
| 68 | |
| 69 | addFile () { |
| 70 | const { accept, autoUpload, disabled, readOnly, fileSize } = this.props; |
no test coverage detected