react-dropzone
Advanced tools
Comparing version 11.3.1 to 11.3.2
@@ -571,4 +571,5 @@ function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); } | ||
stopPropagation(event); | ||
var hasFiles = isEvtWithFiles(event); | ||
if (event.dataTransfer) { | ||
if (hasFiles && event.dataTransfer) { | ||
try { | ||
@@ -581,3 +582,3 @@ event.dataTransfer.dropEffect = 'copy'; | ||
if (isEvtWithFiles(event) && onDragOver) { | ||
if (hasFiles && onDragOver) { | ||
onDragOver(event); | ||
@@ -584,0 +585,0 @@ } |
@@ -169,3 +169,3 @@ { | ||
}, | ||
"version": "11.3.1", | ||
"version": "11.3.2", | ||
"engines": { | ||
@@ -172,0 +172,0 @@ "node": ">= 10" |
@@ -557,3 +557,4 @@ /* eslint prefer-template: 0 */ | ||
if (event.dataTransfer) { | ||
const hasFiles = isEvtWithFiles(event); | ||
if (hasFiles && event.dataTransfer) { | ||
try { | ||
@@ -564,3 +565,3 @@ event.dataTransfer.dropEffect = 'copy' | ||
if (isEvtWithFiles(event) && onDragOver) { | ||
if (hasFiles && onDragOver) { | ||
onDragOver(event) | ||
@@ -567,0 +568,0 @@ } |
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
682822
6767