input: accept undefined value
This commit is contained in:
parent
39dacddaa7
commit
fd982b760e
1 changed files with 1 additions and 0 deletions
|
|
@ -210,6 +210,7 @@ module.exports = class Input extends _canvas_base {
|
|||
}
|
||||
|
||||
getStringValue() {
|
||||
if (this.value === undefined) return ''
|
||||
return typeof this.value != 'string' ?
|
||||
JSON.stringify(Input.deepCopyWithPrecision(this.value, this.precision)).replace(/,/g, ', ') :
|
||||
this.value
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue