From d916647d919d644773e482f397e47f6cd14ca1ec Mon Sep 17 00:00:00 2001 From: BoykoAlex Date: Thu, 20 Jun 2019 13:53:05 -0400 Subject: [PATCH] Treat list property as a string rather than js array --- src/lib/shared/flo-properties.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/shared/flo-properties.ts b/src/lib/shared/flo-properties.ts index c2cafaf..603b86e 100644 --- a/src/lib/shared/flo-properties.ts +++ b/src/lib/shared/flo-properties.ts @@ -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; } }