react-dropzone
Advanced tools
Comparing version 2.2.3 to 2.2.4
@@ -144,6 +144,6 @@ var React = require('react'); | ||
className = this.props.className; | ||
if (this.state.isDragActive) { | ||
if (this.state.isDragActive && this.props.activeClassName) { | ||
className += ' ' + this.props.activeClassName; | ||
}; | ||
if (this.state.isDragReject) { | ||
if (this.state.isDragReject && this.props.rejectClassName) { | ||
className += ' ' + this.props.rejectClassName; | ||
@@ -150,0 +150,0 @@ }; |
@@ -153,6 +153,6 @@ 'use strict'; | ||
className = this.props.className; | ||
if (this.state.isDragActive) { | ||
if (this.state.isDragActive && this.props.activeClassName) { | ||
className += ' ' + this.props.activeClassName; | ||
}; | ||
if (this.state.isDragReject) { | ||
if (this.state.isDragReject && this.props.rejectClassName) { | ||
className += ' ' + this.props.rejectClassName; | ||
@@ -159,0 +159,0 @@ }; |
{ | ||
"name": "react-dropzone", | ||
"version": "2.2.3", | ||
"version": "2.2.4", | ||
"description": "Simple HTML5 drag-drop zone with React.js", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
41299
21