files-ui/files-ui-react

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:

  1. 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>
  2. upload something in the dropzone
  3. double click on the FileMosaic
  4. 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.

Screenshots
image

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.