From e09cab67bd2b6e40fa52a3eca20320d17c2bf922 Mon Sep 17 00:00:00 2001 From: crisbeto Date: Thu, 8 Mar 2018 07:26:52 -0500 Subject: [PATCH] fix(tree): invalid style declaration during server-side rendering 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 e19d2db2beda..e68d28499b60 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); }