Skip to content

Commit

Permalink
fix(tree-selct): fix tree-select mutual logic (#3111)
Browse files Browse the repository at this point in the history
  • Loading branch information
HaixingOoO authored Sep 22, 2024
1 parent 7e6e219 commit d9b3eb6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/tree-select/TreeSelect.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ const TreeSelect = forwardRef<TreeSelectRefType, TreeSelectProps>((originalProps
data={data}
disabled={disabled}
empty={empty}
expandOnClickNode={true}
expandOnClickNode={false}
allowFoldNodeOnFilter
keys={tKeys}
{...(multiple
Expand Down
2 changes: 1 addition & 1 deletion src/tree/TreeItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ const TreeItem = forwardRef(
name={String(node.value)}
onChange={(checked, ctx) => onChange(node, ctx)}
className={labelClasses}
stopLabelTrigger={!!node.children}
stopLabelTrigger={expandOnClickNode && !!node.children}
{...checkProps}
>
<span date-target="label">{labelText}</span>
Expand Down

0 comments on commit d9b3eb6

Please sign in to comment.