simplajs / simpla-img

An editable image you can update inline, built on Simpla
https://www.simplajs.org
MIT License
6 stars 3 forks source link

Changing UID to point to empty content should clear current content #30

Closed bedeoverend closed 7 years ago

bedeoverend commented 8 years ago

When changing the UID (whether via it's SID or block's UID), it will fetch content at the new UID, but if that content is empty, it retains the current value, rather than clearing it.

It looks like it's this line here, as when there is no default, it doesn't set this.src. Simple solution would be to just use an empty string if _default is falsey.

Same problem as https://github.com/SimplaElements/simpla-text/issues/22

madeleineostoja commented 7 years ago

Fixed in https://github.com/SimplaElements/simpla-img/releases/tag/v1.0.0