From 3b6128f33fb49349571b11303d36d4df1d1f5c8a Mon Sep 17 00:00:00 2001 From: Andrew Kingston Date: Mon, 7 Feb 2022 12:11:20 +0000 Subject: [PATCH] Use automatic formatting for generated longform fields --- .../store/screenTemplates/utils/commonComponents.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/packages/builder/src/builderStore/store/screenTemplates/utils/commonComponents.js b/packages/builder/src/builderStore/store/screenTemplates/utils/commonComponents.js index ae45b4f25d..9fe8cc9563 100644 --- a/packages/builder/src/builderStore/store/screenTemplates/utils/commonComponents.js +++ b/packages/builder/src/builderStore/store/screenTemplates/utils/commonComponents.js @@ -169,6 +169,11 @@ export function makeDatasourceFormComponents(datasource) { optionsSource: "schema", }) } + if (fieldType === "longform") { + component.customProps({ + format: "auto", + }) + } if (fieldType === "array") { component.customProps({ placeholder: "Choose an option",