We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bce05ad commit 1bff6f4Copy full SHA for 1bff6f4
src/ui.js
@@ -41,10 +41,13 @@ function FormField(props) {
41
};
42
43
let type = props.schema.type;
44
- if (props.schema.choices) {
45
- inputProps.options = props.schema.choices;
+ let choices = props.schema.choices || props.schema.enum;
+
46
+ if (choices) {
47
+ inputProps.options = choices;
48
type = 'select';
49
}
50
51
if (props.schema.widget) {
52
if (props.schema.widget === 'multiselect' && props.parentType !== 'array') {
53
// pass
0 commit comments