text: oups, lil fix

This commit is contained in:
jean-emmanuel 2017-09-05 17:39:06 +02:00
parent 917459e805
commit 4f06d1ef00

View file

@ -81,7 +81,7 @@ module.exports = class Text extends _widgets_base {
setValue(v) {
this.value = v==null ? this.defaultValue : v
this.widget.html(iconify(this.value.replace(/\n/g,'<br/>')))
this.widget.html(iconify(String(this.value).replace(/\n/g,'<br/>')))
}