files-ui / files-ui-react

UI components for file uploads with React js. Files UI is a complete library for handling files in the UI. You can validate and upload them. Multilanguage. Server side support.
https://www.files-ui.com
MIT License
46 stars 9 forks source link

double click on FileMosaic opens an alert #5

Closed JuanPabloOS closed 1 year ago

JuanPabloOS commented 1 year ago

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"); }} /> ))} `

  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

JinSSJ3 commented 1 year ago

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! 🎆

JinSSJ3 commented 1 year ago

Hey @JuanPabloOS , we hope you solved the problem by updating the library. 🚀 If not, feel free to open the issue again!

Sincerely.

JuanPabloOS commented 1 year ago

Hi guys, thank you very much for the support!

On Tue, Apr 4, 2023, 10:55 AM JinSSJ3 @.***> wrote:

Hey @JuanPabloOS https://github.com/JuanPabloOS , we hope you solved the problem by updating the library. 🚀 If not, feel free to open the issue again!

Sincerely.

— Reply to this email directly, view it on GitHub https://github.com/files-ui/files-ui-react/issues/5#issuecomment-1496302414, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKEBK5YZZHJWJE5NL6KGONLW7RHAVANCNFSM6AAAAAAWMK574Q . You are receiving this because you were mentioned.Message ID: @.***>