Steps to reproduce
- Go to the special create ZObject page: https://wikifunctions.beta.wmflabs.org/wiki/Special:CreateZObject?view=zobject-editor
- Choose "Create a Type"
- Add one key to the array by clicking the [ + ] button
- Try to select a value type (E.g. String)
Observed behavior
- There's a dropdown saying "Select a Type", which allows for us to search types and displays possible options.
- Writing "Str" and select the option "String"
- While the resulting JSON object is correct ("Z3K1" takes the value "Z6"), the component reflects a strange state:
Expected behavior
- One would expect to see the component in a similar state than when a type is edited (Keep in mind that only custom-built types can have their keys edited, so in order to see this, one has to create a custom type and the view it in the edit page)
NOTE (30-08-2022): The related task T316547 addresses the issue when clicking on the field, while this task remains open to fix the initialization of Z3K1/value type as a reference instead of a literal Z4