Skip to content

Commit cd342c2

Browse files
Russian Rebouçasbrandyscarney
authored andcommitted
fix(show-hide-when): remove whitespaces from conditions before check phase (#9573)
1 parent 3643803 commit cd342c2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/show-hide-when/show-hide-when.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export class DisplayWhen {
1515

1616
if (!conditions) return;
1717

18-
this.conditions = conditions.split(',');
18+
this.conditions = conditions.replace(/\s/g, '').split(',');
1919

2020
// check if its one of the matching platforms first
2121
// a platform does not change during the life of an app

0 commit comments

Comments
 (0)