PolymerElements / iron-image

Image element with sizing and preloading options
https://www.webcomponents.org/element/PolymerElements/iron-image
37 stars 43 forks source link

Setting `preventLoad` to false does not load the image if `src` was cycled through values. #122

Closed bicknellr closed 7 years ago

bicknellr commented 7 years ago

Description

If, while preventLoad is true, src is changed and then returned to its original value then, the next time preventLoad is changed to false, the image does not load.

Expected outcome

The image is loaded.

Actual outcome

The image is not loaded.

Live Demo

http://jsbin.com/rayibus/4/edit?html,output

Steps to reproduce

  1. Check the preventLoad checkbox.
  2. Click 'change src' button to change src to a different value.
  3. Click 'change src' button again to change src back to the original value value.
  4. Uncheck the preventLoad checkbox.