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.
This commit is contained in:
Kristiyan Kostadinov
2018-03-09 10:43:21 -05:00
committed by Jeremy Elbourn
parent 11a3fe1be4
commit c205749f4d
+1 -1
View File
@@ -70,7 +70,7 @@ export class CdkTreeNodePadding<T> 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);
}