From 1181016a51e9b1060bff3f4c164ba7df54e2b9e7 Mon Sep 17 00:00:00 2001 From: cuiwenlong7 Date: Wed, 13 Apr 2022 10:34:45 +0800 Subject: [PATCH 1/2] =?UTF-8?q?fix:=20await=E5=AF=BC=E8=87=B4=E7=9A=84reac?= =?UTF-8?q?t=E6=9B=B4=E6=96=B0=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/formFields/select/single/index.tsx | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/components/formFields/select/single/index.tsx b/src/components/formFields/select/single/index.tsx index 3eada97..7299ab4 100644 --- a/src/components/formFields/select/single/index.tsx +++ b/src/components/formFields/select/single/index.tsx @@ -144,11 +144,9 @@ export default class SelectSingleField extends SelectField { - const value = props.options[defaultSelect === true ? 0 : defaultSelect].value - props.value = value - this.props.onValueSet('', value, await this.validate(value)) - })() + const value = props.options[defaultSelect === true ? 0 : defaultSelect].value + props.value = value + this.props.onValueSet('', value, true) } } -- Gitee From e32e8d82ef8a29e508672634c33b384568457725 Mon Sep 17 00:00:00 2001 From: cuiwenlong7 Date: Wed, 13 Apr 2022 17:42:37 +0800 Subject: [PATCH 2/2] =?UTF-8?q?fix:=E5=AE=B9=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/formFields/select/single/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/formFields/select/single/index.tsx b/src/components/formFields/select/single/index.tsx index 7299ab4..dfc0f23 100644 --- a/src/components/formFields/select/single/index.tsx +++ b/src/components/formFields/select/single/index.tsx @@ -144,7 +144,7 @@ export default class SelectSingleField extends SelectField