We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
What is the current behavior?
utils/index.js line 10 Does not account for the possibility that file.size is undefined.
file.size
undefined
export function fileMatchSize(file, maxSize, minSize) { return file.size <= maxSize && file.size >= minSize }
A DataTransferItem does not have the size property.
size
Therefore the (default) comparison will be undefined <= Infinity && undefined >= 0 which is false, and so isDragAccept will always be false.
undefined <= Infinity && undefined >= 0
isDragAccept
This bug was introduced in #878 which was a fix for #861
Using latest Chrome: 77.0.3865.120 (64-bit) on OSX 10.14.6
The text was updated successfully, but these errors were encountered:
Duplicate of #888.
Sorry, something went wrong.
No branches or pull requests
What is the current behavior?
utils/index.js line 10 Does not account for the possibility that
file.size
isundefined
.A DataTransferItem does not have the
size
property.Therefore the (default) comparison will be
undefined <= Infinity && undefined >= 0
which is false, and soisDragAccept
will always be false.This bug was introduced in #878 which was a fix for #861
Using latest Chrome: 77.0.3865.120 (64-bit) on OSX 10.14.6
The text was updated successfully, but these errors were encountered: