Skip to content

JsonView.KeyName invalid path to root in keys #61

Closed
@sebastiaan-dev

Description

@sebastiaan-dev

I am using the keys prop to locate the current item during selection. For this to work I need the path from the root to the selected item. However, whenever I select something of NestedOpen type it only gives the current key as the path.

At first I thought to add the keys prop as below in NestedOpen.tsx:51:

<KayName keyName={keyName} keys={keys} />

But this still gave only a single key. It seems it finds the full path when rendering for the first time, but forgets on subsequent renders. Hope you can help!

Best Regards

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions