Skip to content

useTreeData append stops working after selecting a key using setSelectedKeys #3288

Closed
@nkalpak

Description

@nkalpak

🐛 Bug Report

useTreeData append stops working after selecting a key using setSelectedKeys

🤔 Expected Behavior

append should work at all times

😯 Current Behavior

append quits working after an item is selected using setSelectedKeys

💁 Possible Solution

/

🔦 Context

I am trying to build a custom tree view component using the useTreeData hook

💻 Code Sample

https://codesandbox.io/s/currying-https-vyq7ri?file=/src/App.tsx:363-364

🌍 Your Environment

Software Version(s)
@react-stately/data 3.5.1
Browser Google Chrome
Operating System Windows 10

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions