Open n-sviridenko opened 8 years ago
Provide a default value
{
"type": "array",
"title": "capabilities",
"items": {
"type": "object",
"options": {
"layout": "grid"
},
"properties": {
"capability_id": {
"type": "integer",
"required": true,
"enum": [1, 2, 3],
"options": {
"enum_titles": ["a", "b", "c"],
"grid_columns": 6
}
},
"started_at": {
"type": "string",
"options": {
"grid_columns": 3
}
},
"ended_at": {
"type": "string",
"options": {
"grid_columns": 3
}
}
},
"default": { "capability_id": 1, "started_at": "", "ended_at": "" }
}
}
Hello all! I have some problem with arrays. This problem against when I add 2+ values (screenshot: http://joxi.ru/KAgMoZlH7WL3ml), remove first one (screenshot: http://joxi.ru/LmG3ea6TDPo9ml) and after add new. After I will see broken array item (screenshot: http://joxi.ru/YmEkaKQHqPOoA6).
My code: