Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Delete a "branch" #91

Open
ErnestoLopez opened this issue May 9, 2023 · 0 comments
Open

Delete a "branch" #91

ErnestoLopez opened this issue May 9, 2023 · 0 comments

Comments

@ErnestoLopez
Copy link

Hi,

When I perform tasks on any branch I can perfectly capture which of them I am referring to, with the "onChange".
But if I try to delete a "branch" (for now I have only tried it in folders) when accessing the "state" through the path of the "event" (these are the parameters that onChange returns and that I used in the other tasks ) the branch in question is gone so I can't use its information.

Is there a way to capture the data (path, "_id",... whatever) so I can tell which branch I was trying to delete before it disappears?

I know you already have something implemented in the line...

 handleCheck,
 handleRename,
 handleDelete,
 handleAddNode,
 handleToggleOpen,

but I have tried to use it by adding the following to the call to the component....

<FolderTree
handleDelete={() => {console.log("handleDelete!!!!")}}
...
/>

But it's not working,

can i use the handleDelete?
How ?

Thank you,

Ernesto

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant