Treat list property as a string rather than js array

This commit is contained in:
BoykoAlex
2019-06-20 13:53:05 -04:00
parent 017c9b7c70
commit d916647d91

View File

@@ -186,11 +186,11 @@ export namespace Properties {
}
get value(): string {
return this.property.value ? this.property.value.join(', ') : '';
return this.property.value ? this.property.value.toString().trim().split(/\s*,\s*/).join(', ') : '';
}
set value(value: string) {
this.property.value = value && value.trim() ? value.split(/\s*,\s*/) : undefined;
this.property.value = value && value.trim() ? value.split(/\s*,\s*/).join(',') : undefined;
}
}