I'm creating a mobile app to submit product pictures for evaluation. After each submission, or if reset button is clicked, the information and the captured picture should be erased (the operator will submit another product info and pic).
However I am not able to reset/clear captured pictures from the component display. Is there a way to programmatically clear the small preview image after a picture has been taken on the Image Input component on mobile (same behavior as clicking the small
x on the image preview)?
ImageInput.clearValue() but neither erase the image preview. (Both methods erase the
ImageInput.value, but the
ImageInput.files is not erased and the preview image continues to be displayed).
I've attached two images, first one with the captured image, where
ImageInput.files have their values set, and second picture after I've ran
ImageInput.value is cleared, but not display.
Thanks in advance,