frontend-collective / frontend-collective/react-sortable-tree

JSX in TreeItem.title

Open
#780 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
5k
Forks
914
PR merge metrics
No merged PRs in 30d

Description

# Reporting a Bug?

Please include either a failing unit test or a simple reproduction. You can start by forking the [CodeSandbox example](https://codesandbox.io/s/wkxvy3z15w)

I wanted to display an icon for each node, such as this:
image

I did it this way:
image

But I had an issue where whenever I collapse/expand a node, it would re-render forever and the browser would be unresponsive forever.

I tried this, just to check:
image

And same thing. It seems to me that just having JSX in the title, causes react-sortable-tree to freeze the browser. It would be a good feature to have.

The thing is. It renders fine, it's just that when you collapse/expand, it freezes.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.