Skip to content

Commit 169e990

Browse files
RSS1102uyarngithub-actions[bot]
committed
fix(tree): add title for checkable items (#3633)
* fix(tree): add `title` to checkable items * chore: update snapshot --------- Co-authored-by: Uyarn <uyarnchen@gmail.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 parent 11552c3 commit 169e990

File tree

2 files changed

+121
-0
lines changed

2 files changed

+121
-0
lines changed

src/tree/hooks/useRenderLabel.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ export default function useRenderLabel(state: TypeTreeItemState) {
7474
stopLabelTrigger={shouldStopLabelTrigger.value}
7575
ignore={treeProps.expandOnClickNode ? 'active' : 'expand,active'}
7676
props={itemCheckProps}
77+
title={node.label}
7778
>
7879
{labelNode}
7980
</TCheckBox>

0 commit comments

Comments
 (0)