CarlosNZ/json-edit-react

Left spacing/padding of rootName changes depending on whether content is object or primitive

CarlosNZ opened this issue · 0 comments

Describe the bug
If you change the data contents from a JSON object to a primitive value (also valid JSON), the left spacing of the root name changes:

Image Image

It seems to have the positioning of the inner content rather than the original key

Expected behavior

The key position shouldn't move.