Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

rc-upload

Package Overview
Dependencies
Maintainers
3
Versions
137
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rc-upload - npm Package Compare versions

Comparing version 1.13.0 to 1.13.1

36

lib/AjaxUploader.js

@@ -21,6 +21,2 @@ 'use strict';

function preventDefault(e) {
e.preventDefault();
}
var AjaxUploader = _react2['default'].createClass({

@@ -40,3 +36,6 @@ displayName: 'AjaxUploader',

getInitialState: function getInitialState() {
return { disabled: false };
return {
disabled: false,
uid: (0, _uid2['default'])()
};
},

@@ -150,5 +149,5 @@

_reset: function _reset() {
this.refs.form.reset();
this.setState({
disabled: false
disabled: false,
uid: (0, _uid2['default'])()
});

@@ -170,15 +169,12 @@ },

},
_react2['default'].createElement(
'form',
{ ref: 'form', onSubmit: preventDefault },
_react2['default'].createElement('input', {
type: 'file',
ref: 'file',
disabled: this.state.disabled,
style: { display: 'none' },
accept: props.accept,
multiple: this.props.multiple,
onChange: this.onChange
})
),
_react2['default'].createElement('input', {
type: 'file',
ref: 'file',
key: this.state.uid,
disabled: this.state.disabled,
style: { display: 'none' },
accept: props.accept,
multiple: this.props.multiple,
onChange: this.onChange
}),
props.children

@@ -185,0 +181,0 @@ );

{
"name": "rc-upload",
"version": "1.13.0",
"version": "1.13.1",
"description": "upload ui component for react",

@@ -5,0 +5,0 @@ "keywords": [

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc