When my page that has a fileinput widget loads i want to manually have one image inside it. It is not uploaded yet, its just a default image that the user can remove or keep if he wants to. The code looks like this:
The problem is that the remove button is not working, you click on it and nothing happens, no error in console too. In my opinion the event is not loaded or missing, or something(not experienced with frontend).
However, if for example i drag & drop another image next to the default one, the fileinput.js loads the event and i can remove the images i want.
Is it possible to make the remove event work before the drag & drop?
---
Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/47383267-manual-file-preview-image-on-fileinput-load?utm_campaign=plugin&utm_content=tracker%2F530581&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F530581&utm_medium=issues&utm_source=github).
When my page that has a fileinput widget loads i want to manually have one image inside it. It is not uploaded yet, its just a default image that the user can remove or keep if he wants to. The code looks like this:
The problem is that the remove button is not working, you click on it and nothing happens, no error in console too. In my opinion the event is not loaded or missing, or something(not experienced with frontend).
However, if for example i drag & drop another image next to the default one, the fileinput.js loads the event and i can remove the images i want.
Is it possible to make the remove event work before the drag & drop?