Skip to content

Commit f8f4c41

Browse files
authored
feat: allow selectField or autoCompleteField to be used for String fields (#941)
1 parent 3eef853 commit f8f4c41

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/codegen-ui/lib/generate-form-definition/helpers/field-type-map.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export const FIELD_TYPE_MAP: {
3131
},
3232
String: {
3333
defaultComponent: 'TextField',
34-
supportedComponents: new Set(['TextAreaField', 'TextField', 'PasswordField']),
34+
supportedComponents: new Set(['TextAreaField', 'TextField', 'PasswordField', 'Autocomplete', 'SelectField']),
3535
},
3636
Int: {
3737
defaultComponent: 'NumberField',

0 commit comments

Comments
 (0)