'None' added to Enum choices

Hi all,

First of all thanks a lot for the great lib and support here :slightly_smiling_face:

If I use a Control like:

{
 "type": "string",
 "enum": ["FOO", "BAR"]
}

within an array (with either default Control or ListWithDetail), I end up with an unwanted None option.

The same control placed outside of the Array does not show None.

The current example for Array shows it as well: Array Example - JSON Forms

=> Is there any way not to allow this choice?

Hi @GregDel,

Cells are rendered using the cells renderers. To get rid off the hard coded None you will need to provide a custom enum cell renderer which does not render the None option.

Outside of the array there is no None options as the Autocomplete renderer is used in which the option can be removed, simply by deleting the text. This is not possible in a basic select.