Use automatic formatting for generated longform fields

This commit is contained in:
Andrew Kingston 2022-02-07 12:11:20 +00:00
parent a96ef98e39
commit a575763bf6
1 changed files with 5 additions and 0 deletions

View File

@ -169,6 +169,11 @@ export function makeDatasourceFormComponents(datasource) {
optionsSource: "schema", optionsSource: "schema",
}) })
} }
if (fieldType === "longform") {
component.customProps({
format: "auto",
})
}
if (fieldType === "array") { if (fieldType === "array") {
component.customProps({ component.customProps({
placeholder: "Choose an option", placeholder: "Choose an option",