From b93d6ea22d630d250861478d9cc4f162394abb4f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=98=BF=E8=8F=9C=20Cai?= Date: Tue, 5 Nov 2024 04:14:43 +0800 Subject: [PATCH] fix(cascader): when dynamically loading, you can search for any node --- src/cascader/core/effect.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/src/cascader/core/effect.ts b/src/cascader/core/effect.ts index 911e0f971f..4a2d48e7cc 100644 --- a/src/cascader/core/effect.ts +++ b/src/cascader/core/effect.ts @@ -176,7 +176,6 @@ export const treeNodesEffect = ( let nodes = []; if (inputVal) { const filterMethods = (node: TreeNode) => { - if (!node.isLeaf()) return; if (isFunction(filter)) { return filter(`${inputVal}`, node as TreeNodeModel & TreeNode); }