You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 19, 2024. It is now read-only.
I'm using the nodeContentRenderer props to customise the style of the sortable tree. I need to had an add and a remove button in every node. To customise like I want and add buttons, I copied the node-renderer-default.js and I had handleAddNode and handleRemoveNode props to it with the UI of the buttons.
Below, is an example where I called my SortableTree with the custom Node component and the function to handle the node remove.
I have an issue in my handleRemoveNode function. Every call, my items state was set to the initial value and i don't know why this happening... Somebody can help me ? 🙏
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi,
I'm using the
nodeContentRenderer
props to customise the style of the sortable tree. I need to had anadd
and aremove
button in every node. To customise like I want and add buttons, I copied thenode-renderer-default.js
and I hadhandleAddNode
andhandleRemoveNode
props to it with the UI of the buttons.Below, is an example where I called my
SortableTree
with the custom Node component and the function to handle the node remove.I have an issue in my
handleRemoveNode
function. Every call, myitems
state was set to the initial value and i don't know why this happening... Somebody can help me ? 🙏Beta Was this translation helpful? Give feedback.
All reactions