Skip to content

Table type and compact option gives Typeerror #39

@majkinetor

Description

@majkinetor

The following example shows error:

{
    "$schema": "http://json-schema.org/draft-04/schema#",

    "properties": {

        "test": {
            "properties": {
                "sources": {
                    "options": { "compact": true },
                    "type": "table",
                    "items": {
                        "properties": {
                            "amount": {
                                "type": "string"
                            }
                        }
                    }
                }
            }
        }
    }
}

The error resolves when we set compact: false. Doesn't happen on https://json-editor.github.io/json-editor/

In FireFox: TypeError: this.title is undefined
In Chrome: TypeError: Cannot read properties of undefined (reading 'appendChild')

https://pmk65.github.io/jedemov2/dist/demo.html?schema=EQbwOgdgBDVsASAzgYwBYFMC2BDeAuOYNAFxIAd8B6KgKyQHsIBaVTXAOgYCcBzKgCbccAMxLMADABYqbbDgDE8ADSRIsIuW4NyGbiQCWGJASjgI6jbHgljJU%2BatPN23fqMnghR89%2FxGAK7cKMYOlr4RRDqGTJ7eRCgMWOQ4KPZeUCTcARhQAL6q0JERNgCeuqY2OABGADYYKuHFTvAGtlhxZk3NfsBaOnqGoRk%2BPT3wOFgMARDp3t1j48Ak5Q0Z%2FlkGELzwC4vOeXv7%2BUfNh0Vj52dHV7DnecBAA%3D%3D%3D&value=ETI%3D&code=EQehAIBUAsFNwGYHsA2KkHcCWA7A5uCrrAM7gCGATvALbk4Am5ALkpQJ4WPjXkNI4U7AHTgAmkgCu4AMb0KDBrMklWNWUgbxyAIyQA3bdx2x0GYQB0cWBOAAUAKxKwGWVpXC5V9GbCS3sRkxhACkAZQB5ADkAUVd3AEpwJxc3NmEtVUokdjsEgG4rFPi2cABecBxYDHBA%2FnNw6Li0yjt%2BGUkaWBxmYQBHSVgOMNNYGXc7C2AAYicBAFpU93nkShophIAaZJcWcgLgIA%3D&style=ETI%3D&theme=spectre&iconlib=spectre&object_layout=normal&template=default&show_errors=interaction&required_by_default=0&no_additional_properties=0&display_required_only=0&remove_empty_properties=0&keep_oneof_values=1&ajax=1&ajaxCredentials=0&show_opt_in=0&disable_edit_json=1&disable_collapse=1&disable_properties=1&disable_array_add=0&disable_array_reorder=1&disable_array_delete=0&enable_array_copy=0&array_controls_top=1&disable_array_delete_all_rows=1&disable_array_delete_last_row=1&prompt_before_delete=0&lib_aceeditor=0&lib_autocomplete=1&lib_sceditor=0&lib_simplemde=1&lib_select2=0&lib_selectize=0&lib_choices=0&lib_flatpickr=0&lib_signaturepad=0&lib_mathjs=0&lib_cleavejs=1&lib_jodit=0&lib_jquery=0&lib_dompurify=1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions