From 628bd385f3747b8fe62e82e4a02e0d81abf81722 Mon Sep 17 00:00:00 2001 From: xujiahao01 Date: Fri, 15 Apr 2022 15:22:38 +0800 Subject: [PATCH 1/2] =?UTF-8?q?fix:Select=E4=BB=85=E5=85=A8=E9=80=89?= =?UTF-8?q?=E4=B8=8D=E5=A4=9A=E9=80=89=E4=B8=8D=E5=BA=94=E5=B1=95=E7=A4=BA?= =?UTF-8?q?=E9=80=89=E6=A1=86,=E4=B8=94=E6=97=A0=E6=B3=95=E9=80=89?= =?UTF-8?q?=E4=B8=AD=E5=80=BC=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Select.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/Select.tsx b/src/components/Select.tsx index 8761ce380..78388e64f 100644 --- a/src/components/Select.tsx +++ b/src/components/Select.tsx @@ -913,7 +913,7 @@ export class Select extends React.Component { index }) ) - ) : checkAll || multiple ? ( + ) : multiple ? ( { isOpen={this.state.isOpen} inputValue={inputValue} onChange={ - /*展示 Checkbox 的时候,会出发多次 onChange 原因待查*/ multiple || + /*展示 Checkbox 的时候,会出发多次 onChange 原因待查*/ multiple && checkAll ? noop : this.handleChange From ff0b6292386aa422986fc1f18e0b4aa3dfb4c1d6 Mon Sep 17 00:00:00 2001 From: xujiahao01 Date: Fri, 15 Apr 2022 19:22:45 +0800 Subject: [PATCH 2/2] =?UTF-8?q?renderMenu=E5=AD=98=E5=9C=A8=E6=97=B6?= =?UTF-8?q?=E5=A4=9A=E9=80=89=E5=88=A4=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Select.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/Select.tsx b/src/components/Select.tsx index 78388e64f..4d013470d 100644 --- a/src/components/Select.tsx +++ b/src/components/Select.tsx @@ -883,7 +883,7 @@ export class Select extends React.Component { ) : null} {renderMenu ? ( - checkAll || multiple ? ( + multiple ? (