Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Table type and compact option gives Typeerror #39

Open
majkinetor opened this issue Sep 22, 2021 · 0 comments
Open

Table type and compact option gives Typeerror #39

majkinetor opened this issue Sep 22, 2021 · 0 comments

Comments

@majkinetor
Copy link

majkinetor commented Sep 22, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant