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
Describe the bug
A FormulateInput of type file and property multiple with an initial value set holding a length 1 array will generate an error in Chrome when adding another file to the list via the Add File button:
Failed to execute 'add' on 'DataTransferItemList': parameter 1 is not of type 'File'."
found in
---> <FormulateFiles>
<FormulateInputFile>
<FormulateInput>
<FormulateForm>
<Root>
In Safari, it works without error.
To Reproduce
Use CodePen below and click to add a new file. Chrome will immediately add it to the list visually (without the normal faux loader animations) and will produce console error as above.
Describe the bug
A FormulateInput of type
file
and propertymultiple
with an initialvalue
set holding a length 1 array will generate an error in Chrome when adding another file to the list via the Add File button:In Safari, it works without error.
To Reproduce
Use CodePen below and click to add a new file. Chrome will immediately add it to the list visually (without the normal faux loader animations) and will produce console error as above.
CodePen:
https://codepen.io/flyfoxuk/pen/QWGwggm
Expected behavior
The selected file to be added without error to the file list.
Device information:
Further info
Seems to be related to
mergeFileList
function in FileUpload.js ??The text was updated successfully, but these errors were encountered: