Skip to content

Multiple Tree Demo inconsistent behavior, buggy. #89

@waml

Description

@waml

Describe the bug
try moving item from one tree to another node, when you click expand, it seems to create duplicates in the new tree. Also it causes indentation of the other parent node which is unrelated, leading to confusion. in some cases the entire tree disappears.

To Reproduce
It's hard to list all permutations but a simple one: try moving lunch into the other lunch tree. the other tree disappears. try moving from one to another.

Expected behavior
moving items from one tree to another should be consistent and bug free

Screenshots
No screenshot but saw the console output:


Uncaught (in promise) InternalError: too much recursion
    key https://headless-tree.lukasbach.com/storybook/react/9378.e0cad722.iframe.bundle.js:1
    retrieveChildrenIds https://headless-tree.lukasbach.com/storybook/react/guides-multiple-trees-stories.3de8d61f.iframe.bundle.js:2
    key https://headless-tree.lukasbach.com/storybook/react/9378.e0cad722.iframe.bundle.js:1
    recursiveAdd https://headless-tree.lukasbach.com/storybook/react/9378.e0cad722.iframe.bundle.js:1
    recursiveAdd https://headless-tree.lukasbach.com/storybook/react/9378.e0cad722.iframe.bundle.js:1
    recursiveAdd https://headless-tree.lukasbach.com/storybook/react/9378.e0cad722.iframe.bundle.js:1
    recursiveAdd https://headless-tree.lukasbach.com/storybook/react/9378.e0cad722.iframe.bundle.js:1
    recursiveAdd https://headless-tree.lukasbach.com/storybook/react/9378.e0cad722.iframe.bundle.js:1
[9378.e0cad722.iframe.bundle.js:1:660](https://headless-tree.lukasbach.com/storybook/react/9378.e0cad722.iframe.bundle.js)
Uncaught TypeError: item.getItemMeta() is undefined
    onClick 9378.e0cad722.iframe.bundle.js:1
    Nb index.mjs:197
    Tb index.mjs:197
    Ub index.mjs:197
    nf index.mjs:197
    se index.mjs:197
    hd index.mjs:197
    Rk index.mjs:197
    Jb index.mjs:197
    hd index.mjs:197
    fd index.mjs:197
    ed index.mjs:197

Additional context
mac os, firefox

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions