From a66ca4d0e2074108351a246eff6fd206e8cbcd9f Mon Sep 17 00:00:00 2001 From: NathanPB Date: Tue, 29 Oct 2019 17:59:13 -0300 Subject: [PATCH] Fixed className property not working --- src/components/tree/Tree.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/tree/Tree.js b/src/components/tree/Tree.js index 4be9a55e31..34a8aea933 100644 --- a/src/components/tree/Tree.js +++ b/src/components/tree/Tree.js @@ -415,7 +415,7 @@ export class Tree extends Component { } render() { - const className = classNames('p-tree p-component', {'p-tree-selectable': this.props.selectionMode, 'p-tree-loading': this.props.loading}); + const className = classNames('p-tree p-component', {'p-tree-selectable': this.props.selectionMode, 'p-tree-loading': this.props.loading}, this.props.className); const loader = this.renderLoader(); const content = this.renderModel(); const filter = this.renderFilter();