SortableTree fails to render items when wrapped by a `div`
See original GitHub issueI can get around this by using span
s, but this strange bug should definitely be looked into.
Issue Analytics
- State:
- Created 7 years ago
- Comments:11 (3 by maintainers)
Top Results From Across the Web
react-sortable-tree not rendering right - Stack Overflow
It looks like you forgot to import styles: import 'react-sortable-tree/style.css'. at the top of the page.
Read more >react-sortable-tree - npm
Prop Type Description
treeData (required) object
getNodeKey (recommended) func
onDragStateChanged func Called when a drag is initiated or ended. (): void
Read more >React Children And Iteration Methods - Smashing Magazine
But in some cases, we want to inspect the children prop to maybe wrap each child in another element/component or to reorder or...
Read more >How to Create React Sortable Tree With Example
There are variety of types of Sortable tree component in React . ... render() { return ( <div style={{ height: 800 }}> <SortableTree...
Read more >Draggable react - Caritas Castellaneta
React Draggable And Sortable Tree. ... Jan 29, 2019 · First, we'll make each of the div elements that we created above draggable...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Sorry for the inconvenience. I’m glad you got it figured out.
For the time being, I’ve added a wrapping div with a fixed height to the example in the README, which I think will reduce the chance of this coming up again.
@ncphillips Can you please share your
NodeRenderer
code. I did not find any sample code in doc to achieve this. So its better if you can provide some simple snippted. Actually my tree data json has differentkey
(instead oftitle
andchildren
) so I have to usenodeContentRenderer
.Please help me to out of it.
Thanks, Anil