Closed dorakadri closed 7 months ago
lil update i figured it out the problem was this : the on blur
{node.isEditing ? (
<Input
type="text"
defaultValue={node.data.name}
onFocus={(e) => e.currentTarget.select()}
onBlur={() => node.reset()}
autoFocus
/>
) : (
<div>
<Text variant={"TreeItemText"}> {node.data.name}</Text>
</div>
)}
well feel free to use this code if you want to implement a contextMenu
i want to make a delete and rename with a contextMenu so in my node component im doing this so im storing the node.id all fine till here
here im getting the id and i want to turn the node to edit mode but doesnt work :'(
can any one help me please <3