double click on FileMosaic opens an alert
JuanPabloOS opened this issue ยท 3 comments
Describe the bug
When double clicking on the FileMosaic an alert will show with the text "double click on file", I provided my own onDoubleClick to the component, but it doesn't override the default function but I'm still able to call my custom function.
To Reproduce
Steps to reproduce the behavior:
- Render this code
<Dropzone onChange={updateFiles} value={files} accept=".csv" maxFiles={1} > {files.map((file: ExtFile) => ( <FileMosaic key={file.id} {...file} onDelete={removeFile} info={true} onDoubleClick={() => { console.log("hi there"); }} /> ))} </Dropzone> - upload something in the dropzone
- double click on the FileMosaic
- An alert will show up with the text "double click on file"
Expected behavior
A clear and concise description of what you expected to happen.
I'm using @files-ui/react: 1.0.5
Hi @JuanPabloOS, thanks for the alert.
We are sorry for the inconvenience.
Could you please upgrade to @files-ui/react 1.0.8?
That's the latest version in which we have already solved this issue.
Please, tell us if that worked for you:
Thanks in advance! ๐
Hey @JuanPabloOS , we hope you solved the problem by updating the library. ๐
If not, feel free to open the issue again!
Sincerely.
