From e8442c8161e3b75e662cec39a90962470afe94c7 Mon Sep 17 00:00:00 2001 From: Andrew Kingston Date: Tue, 17 Aug 2021 13:58:51 +0100 Subject: [PATCH] Fix autoscreen-generated form component default settings --- .../store/screenTemplates/utils/commonComponents.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/builder/src/builderStore/store/screenTemplates/utils/commonComponents.js b/packages/builder/src/builderStore/store/screenTemplates/utils/commonComponents.js index aaf25f6d03..1a64a8958f 100644 --- a/packages/builder/src/builderStore/store/screenTemplates/utils/commonComponents.js +++ b/packages/builder/src/builderStore/store/screenTemplates/utils/commonComponents.js @@ -161,7 +161,11 @@ export function makeDatasourceFormComponents(datasource) { placeholder: field, }) if (fieldType === "options") { - component.customProps({ placeholder: "Choose an option " }) + component.customProps({ + placeholder: "Choose an option", + optionsType: "select", + optionsSource: "schema", + }) } if (fieldType === "link") { let placeholder =