Skip to content

Checkbox inside an array for more than one level doesn't work #330

Closed
@divyun

Description

@divyun

This works

Schema = {
    "type": "object",
    "title": "Comment",
    "properties": {
        "Level1": {
            "type": "array",
            "items": {
                "type": "object",
                "properties": {
                    "Level2": {
                        "type": "array",
                        "items": {
                            "type": "object",
                            "properties": {
                                "Text1": {
                                    "type": "string"
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}

Form = "*"

This doesn't

Schema = {
    "type": "object",
    "title": "Comment",
    "properties": {
        "Level1": {
            "type": "array",
            "items": {
                "type": "object",
                "properties": {
                    "Level2": {
                        "type": "array",
                        "items": {
                            "type": "object",
                            "properties": {
                                "Checkbox1": {
                                    "type": "boolean" //Doesn't work if its a boolean
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}

Form = "*"

Console

TypeError: undefined is not a function
at Scope.link.i.$watch.i.appendToArray (schema-form.min.js:1)
at $parseFunctionCall (angular.js:12404)
at angular-touch.js:472
at Scope.$get.Scope.$eval (angular.js:14466)
at Scope.$get.Scope.$apply (angular.js:14565)
at HTMLButtonElement. (angular-touch.js:471)
at HTMLButtonElement.eventHandler (angular.js:3032)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions