Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

double click on FileMosaic opens an alert #5

Closed
JuanPabloOS opened this issue Mar 29, 2023 · 3 comments
Closed

double click on FileMosaic opens an alert #5

JuanPabloOS opened this issue Mar 29, 2023 · 3 comments

Comments

@JuanPabloOS
Copy link

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

@JinSSJ3
Copy link
Contributor

JinSSJ3 commented Apr 1, 2023

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
Copy link
Contributor

JinSSJ3 commented Apr 4, 2023

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

Sincerely.

@JinSSJ3 JinSSJ3 closed this as completed Apr 4, 2023
@JuanPabloOS
Copy link
Author

JuanPabloOS commented Apr 5, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants