diff --git a/src/components/show-hide-when/show-hide-when.ts b/src/components/show-hide-when/show-hide-when.ts index 2a2f8f75e1e..9c4003c8941 100644 --- a/src/components/show-hide-when/show-hide-when.ts +++ b/src/components/show-hide-when/show-hide-when.ts @@ -15,7 +15,7 @@ export class DisplayWhen { if (!conditions) return; - this.conditions = conditions.split(','); + this.conditions = conditions.replace(/\s/g, '').split(','); // check if its one of the matching platforms first // a platform does not change during the life of an app