Hi,
So my question is pretty simple.
I just want to to delete a picture source !
I read in the documentation that
Gets or sets the Picture’s source URL, which can be any valid image (png, jpg, gif, etc) URL.
The default value is the empty string, which specifies no image source.
So I’m expecting if I change the source to an empty string I will remove the image.
However if I do that I get an error.
Element has no source (“src”) attribute: [object HTMLImageElement]
This is what I tried here on codesandbox.
Just click on the button below the Diagram to change the source to an empty string.
I tried with empty string, undefined, null and ’ ’ (space).
For the empty string the App crashes with an error.
For undefined, I don’t see any changes.
For the two last ones, I get what I want on the Diagram but when I open the Network Tab on the Debugger I see that the browser is looking for pictures on /null url. Which is normal, and wrong … I guess.
So what did I miss here ?
Thanks for you time.