Skip to content

Commit

Permalink
fix(tree): invalid style declaration during server-side rendering
Browse files Browse the repository at this point in the history
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 angular#10131.
  • Loading branch information
crisbeto committed Mar 8, 2018
1 parent e7533a5 commit e09cab6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cdk/tree/padding.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit e09cab6

Please sign in to comment.