text: fix receiving null/undefined
This commit is contained in:
parent
0c40c08642
commit
bb5b8b2dbc
1 changed files with 1 additions and 1 deletions
|
|
@ -81,7 +81,7 @@ module.exports = class Text extends _widgets_base {
|
|||
|
||||
setValue(v) {
|
||||
|
||||
this.value = typeof v=='object' && !v.length ? this.defaultValue : v
|
||||
this.value = v==null ? this.defaultValue : v
|
||||
this.widget.html(iconify(this.value))
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue