Comparing version 0.3.7 to 0.3.8
{ | ||
"name": "melon", | ||
"version": "0.3.7", | ||
"version": "0.3.8", | ||
"description": "ui components for react", | ||
@@ -5,0 +5,0 @@ "main": "./src", |
@@ -89,7 +89,4 @@ (function (global, factory) { | ||
var _props = this.props; | ||
var upload = _props.upload; | ||
var onSelect = _props.onSelect; | ||
var upload = this.props.upload; | ||
var event = { | ||
@@ -100,12 +97,7 @@ target: this, | ||
if (upload) { | ||
upload(event).then(function (result) { | ||
return _this2.setFile(result); | ||
}, function (error) { | ||
return _this2.clearFile(); | ||
}); | ||
return; | ||
} | ||
onSelect(event); | ||
upload(event).then(function (result) { | ||
return _this2.setFile(result); | ||
}, function (error) { | ||
return _this2.clearFile(); | ||
}); | ||
}; | ||
@@ -125,8 +117,9 @@ | ||
}); | ||
} else { | ||
this.setState({ | ||
isUploaded: false, | ||
value: value | ||
}); | ||
return; | ||
} | ||
this.setState({ | ||
isUploaded: false, | ||
value: value | ||
}); | ||
}; | ||
@@ -195,5 +188,5 @@ | ||
var value = _state2.value; | ||
var _props2 = this.props; | ||
var size = _props2.size; | ||
var placeholder = _props2.placeholder; | ||
var _props = this.props; | ||
var size = _props.size; | ||
var placeholder = _props.placeholder; | ||
@@ -200,0 +193,0 @@ |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1288794
6589