react-dropzone
Advanced tools
Comparing version 8.0.0 to 8.0.1
@@ -85,11 +85,2 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; | ||
try { | ||
// The file dialog on Chrome allows users to drag files from the dialog onto | ||
// the dropzone, causing the browser the crash when the file dialog is closed. | ||
// A drop effect of 'none' prevents the file from being dropped | ||
evt.dataTransfer.dropEffect = _this.isFileDialogActive ? 'none' : 'copy'; // eslint-disable-line no-param-reassign | ||
} catch (err) { | ||
// continue regardless of error | ||
} | ||
if (_this.props.onDragOver && isDragDataWithFiles(evt)) { | ||
@@ -96,0 +87,0 @@ _this.props.onDragOver.call(_this, evt); |
@@ -151,3 +151,3 @@ { | ||
}, | ||
"version": "8.0.0", | ||
"version": "8.0.1", | ||
"engines": { | ||
@@ -154,0 +154,0 @@ "node": ">= 6" |
@@ -98,11 +98,2 @@ /* eslint prefer-template: 0 */ | ||
try { | ||
// The file dialog on Chrome allows users to drag files from the dialog onto | ||
// the dropzone, causing the browser the crash when the file dialog is closed. | ||
// A drop effect of 'none' prevents the file from being dropped | ||
evt.dataTransfer.dropEffect = this.isFileDialogActive ? 'none' : 'copy' // eslint-disable-line no-param-reassign | ||
} catch (err) { | ||
// continue regardless of error | ||
} | ||
if (this.props.onDragOver && isDragDataWithFiles(evt)) { | ||
@@ -109,0 +100,0 @@ this.props.onDragOver.call(this, evt) |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
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
245094
3997