From c205749f4d42150d7e359e09b1125cf59e898bac Mon Sep 17 00:00:00 2001 From: Kristiyan Kostadinov Date: Fri, 9 Mar 2018 10:43:21 -0500 Subject: [PATCH] fix(tree): invalid style declaration during server-side rendering (#10326) Switches to camel-cased properties when declaring the inline styles for the tree, in order to avoid invalid style declarations when they get passed through Domino. Relates to #10131. --- src/cdk/tree/padding.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cdk/tree/padding.ts b/src/cdk/tree/padding.ts index e19d2db2bed..e68d28499b6 100644 --- a/src/cdk/tree/padding.ts +++ b/src/cdk/tree/padding.ts @@ -70,7 +70,7 @@ export class CdkTreeNodePadding implements OnDestroy { _setPadding() { const padding = this._paddingIndent(); - const paddingProp = this._dir && this._dir.value === 'rtl' ? 'padding-right' : 'padding-left'; + const paddingProp = this._dir && this._dir.value === 'rtl' ? 'paddingRight' : 'paddingLeft'; this._renderer.setStyle(this._element.nativeElement, paddingProp, padding); }