From 78492a548b626da4bc3be60c46ebfdc33bc588ba Mon Sep 17 00:00:00 2001 From: zhangwenshuai Date: Mon, 9 Nov 2020 21:52:33 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=8F=AF=E8=BE=93=E5=8F=AF?= =?UTF-8?q?=E9=80=89=E4=B8=BA=E7=A9=BA=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../component/base/extra/dataEntry/textSelect/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/apolloTable/component/base/extra/dataEntry/textSelect/index.tsx b/components/apolloTable/component/base/extra/dataEntry/textSelect/index.tsx index a6333c7..f2a1bbe 100644 --- a/components/apolloTable/component/base/extra/dataEntry/textSelect/index.tsx +++ b/components/apolloTable/component/base/extra/dataEntry/textSelect/index.tsx @@ -150,7 +150,7 @@ class TextSelect extends React.Component { onDropdownVisibleChange(tempVisible); if (!tempVisible) { // 清空或者为空对象时,强制置空 - if (!selected || selected.length === 0 || (!selected.label || !selected.value || !selected.key)) { + if (!selected || selected.length === 0 || (!selected.label && !selected.value && !selected.key)) { return this.onChange(undefined); } this.onChange(selected); -- 2.21.0