rc-upload
Advanced tools
Comparing version 1.5.6 to 1.5.7
@@ -6,2 +6,3 @@ 'use strict'; | ||
var Align = require('rc-align'); | ||
var iframeCount = 0; | ||
@@ -20,2 +21,3 @@ var IframeUploader = React.createClass({ | ||
getInitialState: function getInitialState() { | ||
this.iframeCount = iframeCount++; | ||
return { | ||
@@ -156,3 +158,3 @@ uid: 1, | ||
try { | ||
this.file.name = this.file.name || e.target.value; | ||
this.file.name = e.target.value; | ||
this.file.uid = uid(); | ||
@@ -192,3 +194,3 @@ } catch (ex) { | ||
getIframeName: function getIframeName() { | ||
return 'iframe_uploader_' + this.state.uid; | ||
return 'iframe_uploader_' + this.iframeCount + '_' + this.state.uid; | ||
}, | ||
@@ -195,0 +197,0 @@ |
{ | ||
"name": "rc-upload", | ||
"version": "1.5.6", | ||
"version": "1.5.7", | ||
"description": "upload ui component for react", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
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
13332
325