You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using Droppable to allow drag'n dropping files on regular file inputs, and I noticed that the accept attribute was ignored.
That's because the virtual input used in promptForFiles does not copy the accept value.
Since I'm using plain inputs, turning isClickable: false (instead of true, the default) allows the native filepicker to open, including its accept, which solves the issue for me in this case.
When the element is a regular file input, it would be more intuitive to copy the input's multiple and accept attributes to the virtual input used in promptForFiles, and only use the defaults otherwise.
The text was updated successfully, but these errors were encountered:
I'm using Droppable to allow drag'n dropping files on regular file inputs, and I noticed that the
accept
attribute was ignored.That's because the virtual input used in
promptForFiles
does not copy theaccept
value.Since I'm using plain inputs, turning
isClickable: false
(instead oftrue
, the default) allows the native filepicker to open, including itsaccept
, which solves the issue for me in this case.When the element is a regular file input, it would be more intuitive to copy the input's
multiple
andaccept
attributes to the virtual input used inpromptForFiles
, and only use the defaults otherwise.The text was updated successfully, but these errors were encountered: