[BUG] isDragReject
set to true
for accepted .rar
file type
#1342
Labels
isDragReject
set to true
for accepted .rar
file type
#1342
Describe the bug
This issue is reproducible in Windows, but not in Linux.
I am trying to visually indicate whether a file is accepted or not for upload through drag & drop by checking the
isDragReject
value and changing the style of a specific area. However, this value is incorrect when trying to upload a.rar
file. More specifically, it is set totrue
while dragging the file over the upload area, but the file is eventually accepted.To Reproduce
Please check the following codesandbox:
https://codesandbox.io/p/devbox/musing-mestorf-9j2y64?file=%2Fsrc%2F_app.jsx%3A10%2C5-10%2C17
Steps to reproduce the behavior:
Accepted files
sectionRepeat the previous steps with the .png file. You should not see the area border turn to red.
Expected behavior
Expected the
isDragReject
value to be equal tofalse
but instead it is equal totrue
. However, the file is eventually accepted. This causes an incorrect behavior when trying to visually indicate whether this file is valid or invalid for upload.Desktop:
The text was updated successfully, but these errors were encountered: