Skip to content

shouldExpandNodeInitially causes a confusing visual bug where the array looks like an empty array, objects behave similar #76

@Seigiard

Description

@Seigiard

shouldExpandNodeInitially works, but it causes a confusing visual bug where the array looks like an empty array.

Also user should click it twice to open it.

How it looks now:
Image

Expecting
Image

Also, it works strangely with objects.

How it looks now:
Image

Expecting
Image

Video
https://github.com/user-attachments/assets/b93b19b8-26a0-4c2b-add8-ac3628ad1591

Playground:
https://stackblitz.com/edit/vitejs-vite-jnppc39x?file=src%2FApp.tsx

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