Skip to content

Commit

Permalink
fix: tree-select clear button render (#4655)
Browse files Browse the repository at this point in the history
  • Loading branch information
ajuner authored Sep 15, 2021
1 parent 2ce3f44 commit 3b8b19e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/vc-tree-select/src/Base/BaseSelector.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down

0 comments on commit 3b8b19e

Please sign in to comment.