You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have an almost basic configuration using defaultPreviewContent to show a default image when none is selected. No initialPreview data.
I select a gif image, the preview appears correctly but when I press the close button, the image is removed BUT the caption at the left of the browse button remains.
Debugging the code I found _setCaption function exits because isError==false and if (isEmpty(content)) == true so the div is never cleared.
Regards.
The text was updated successfully, but these errors were encountered:
You need to set initialCaption property for your use case if you need to show a specific initial caption on clear. Remember to set it to a blank space (and not an empty string) if you do not want anything displayed.
Hi,
First, good job and very nice plugin.
I have an almost basic configuration using defaultPreviewContent to show a default image when none is selected. No initialPreview data.
I select a gif image, the preview appears correctly but when I press the close button, the image is removed BUT the caption at the left of the browse button remains.
Debugging the code I found
_setCaption
function exits becauseisError==false
andif (isEmpty(content)) == true
so the div is never cleared.Regards.
The text was updated successfully, but these errors were encountered: