mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
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:
committed by
Jeremy Elbourn
parent
11a3fe1be4
commit
c205749f4d
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user