From 72838b7f49526c5de68463da1095353f59ea63c8 Mon Sep 17 00:00:00 2001 From: chenos Date: Tue, 8 Nov 2022 17:30:16 +0800 Subject: [PATCH] fix(selector): button cannot be submitted --- .../client/src/schema-component/antd/form-item/FormItem.tsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/core/client/src/schema-component/antd/form-item/FormItem.tsx b/packages/core/client/src/schema-component/antd/form-item/FormItem.tsx index 879d43ea8..b2feb720a 100644 --- a/packages/core/client/src/schema-component/antd/form-item/FormItem.tsx +++ b/packages/core/client/src/schema-component/antd/form-item/FormItem.tsx @@ -393,6 +393,10 @@ FormItem.Designer = (props) => { action: tk ? 'get' : null, }); + if (v === 'CollectionField') { + schema['type'] = 'string'; + } + insertAdjacent('beforeBegin', divWrap(schema), { onSuccess: () => { dn.remove(null, {