iron-image icon indicating copy to clipboard operation
iron-image copied to clipboard

Safari Error when dynamic src ends up being null

Open hereiam133 opened this issue 9 years ago • 3 comments

Seems safari blows up when the src for the iron-image is null.

hereiam133 avatar Feb 01 '16 19:02 hereiam133

:+1:

patrinhani-ciandt avatar Mar 14 '16 19:03 patrinhani-ciandt

With src being null or undefined, <iron-image> behaves as though the src would be "null" or "undefined" respectively, thus causing a request to an URL that most likely doesn't return an image. This happens in all browsers.

Legioth avatar Aug 16 '17 19:08 Legioth

Is there a workaround for this? I keep seeing references to '/undefined' in devtools network panel, and while it doesn't seem to cause any problems, it does ring alarm bells when I see it...and it makes it look like there's an error in my code, when it's actually iron-image. I tried setting src to '#', but then it simply references 'localhost' (since I'm running on localhost using polymer serve).

davidmaxwaterman avatar Aug 27 '19 16:08 davidmaxwaterman