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

Clear button is not working #46

Closed
hosseinitabar opened this issue Nov 7, 2021 · 1 comment
Closed

Clear button is not working #46

hosseinitabar opened this issue Nov 7, 2021 · 1 comment

Comments

@hosseinitabar
Copy link

Hello

I'm using your library. fileUploadWithPreview:imagesAdded works. fileUploadWithPreview:imageDeleted works.

But fileUploadWithPreview:clearButtonClicked is not getting fired.

I use custom-file-container__image-clear as the class of the clear button. I have not change any HTML structure.

What should I do?

@johndatserakis
Copy link
Owner

Hey there. Seems to be working for me in this codesandbox. When I click the "x" above the input, I get this event triggered. Maybe take a look at this example as see if you've shifted some HTML accidentally.

Also, please make sure you're using the latest version, v4.2.0, as fileUploadWithPreview:clearButtonClicked is a newer event.

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