Skip to content

Commit

Permalink
Merge pull request #2642 from melloware/PR2641
Browse files Browse the repository at this point in the history
Fix #2641: TreeSelect header should be panelHeaderTemplate
  • Loading branch information
yigitfindikli authored Feb 16, 2022
2 parents 5e2c349 + ea5cb83 commit 34222b8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/lib/treeselect/TreeSelect.js
Original file line number Diff line number Diff line change
Expand Up @@ -622,7 +622,7 @@ export class TreeSelect extends Component {
</div>
);

if (this.props.header) {
if (this.props.panelHeaderTemplate) {
const defaultOptions = {
className: 'p-treeselect-header',
filterElement,
Expand All @@ -634,7 +634,7 @@ export class TreeSelect extends Component {
props: this.props
}

return ObjectUtils.getJSXElement(this.props.header, defaultOptions);
return ObjectUtils.getJSXElement(this.props.panelHeaderTemplate, defaultOptions);
}

return content;
Expand Down

0 comments on commit 34222b8

Please sign in to comment.