From 3b8b19ea8c16b8fe76bfcd59c29f106b28fcb43f Mon Sep 17 00:00:00 2001 From: ajuner <106791576@qq.com> Date: Wed, 15 Sep 2021 13:31:59 +0800 Subject: [PATCH] fix: tree-select clear button render (#4655) --- components/vc-tree-select/src/Base/BaseSelector.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/vc-tree-select/src/Base/BaseSelector.jsx b/components/vc-tree-select/src/Base/BaseSelector.jsx index fa3a899e4..97b9ddb66 100644 --- a/components/vc-tree-select/src/Base/BaseSelector.jsx +++ b/components/vc-tree-select/src/Base/BaseSelector.jsx @@ -99,7 +99,7 @@ export default function () { vcTreeSelect: { onSelectorClear }, } = this; - if (!allowClear || !selectorValueList.length || !selectorValueList[0].value) { + if (!allowClear || !selectorValueList.length) { return null; } const clearIcon = getComponent(this, 'clearIcon');