Skip to content

Commit

Permalink
Merge pull request #1069 from NathanPB/feature/tree-classname
Browse files Browse the repository at this point in the history
Fixed #1068 - ClassName property of Tree component not working
  • Loading branch information
mertsincan authored Nov 5, 2019
2 parents 59e4cfd + a66ca4d commit 175d6b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/tree/Tree.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 175d6b7

Please sign in to comment.