Skip to content

Commit 53b0c13

Browse files
Revert "Revert "(TreeNode): add title prop to item label""
This reverts commit 9bd19ac.
1 parent 9c287d1 commit 53b0c13

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/scripts/TreeNode.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@ const TreeNodeItem: FC<TreeNodeProps & { icon?: string }> = (props) => {
102102
className='slds-tree__item-label slds-truncate'
103103
tabIndex={-1}
104104
onClick={onLabelClick}
105+
title={typeof label === 'string' ? label : undefined}
105106
>
106107
{ItemRender ? <ItemRender {...props} /> : label}
107108
</a>

0 commit comments

Comments
 (0)