Skip to content

Commit

Permalink
fix(cascader): 无children选项点击时不会显示之前列表 (#4301)
Browse files Browse the repository at this point in the history
  • Loading branch information
1379255913 authored Jun 17, 2024
1 parent 9d5821c commit 283d9aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cascader/core/effect.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export function expendClickEffect(

if (isDisabled) return;
// 点击展开节点,设置展开状态
if (propsTrigger === trigger && !node.isLeaf()) {
if (propsTrigger === trigger) {
const expanded = node.setExpanded(true);
treeStore.refreshNodes();
treeStore.replaceExpanded(expanded);
Expand Down

0 comments on commit 283d9aa

Please sign in to comment.