Skip to content

Commit

Permalink
fix(tree-select): fix multiple select click parent node callback (#3330)
Browse files Browse the repository at this point in the history
  • Loading branch information
uyarn authored Sep 23, 2024
1 parent dd56a7f commit 67d5c81
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/tree-select.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ export default defineComponent({
onLoad: this.treeNodeLoad,
onChange: this.treeNodeChange,
onActive: this.treeNodeActive,
expandOnClickNode: true,
expandOnClickNode: false,
empty: () => this.renderDefaultTNode('empty', {
defaultNode: <div class={`${this.classPrefix}-select__empty`}>{this.global.empty}</div>,
}),
Expand Down
2 changes: 1 addition & 1 deletion src/tree/hooks/useRenderLabel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ export default function useRenderLabel(state: TypeTreeItemState) {
name={String(node.value)}
onChange={handleChange}
stopLabelTrigger={shouldStopLabelTrigger.value}
ignore="expand,active"
ignore={treeProps.expandOnClickNode ? 'active' : 'expand,active'}
props={itemCheckProps}
>
{labelNode}
Expand Down

0 comments on commit 67d5c81

Please sign in to comment.