-
Notifications
You must be signed in to change notification settings - Fork 94
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
Node.id is changing on select in Vuex #83
Comments
Hello, This is because every time you click on the tree it raise the I don't really understand how it works, because my problem is, when i click on it after the first load that is has a good structure. I think this could be better explained in the docs. |
Ok so I can confirm this is true the first load seems ok, but when you " This is very annoying, especially when you rely on the Id. Please @amsik did you have any idea ? |
Hi! I know about the issue. Please take a look at #81 |
I look into it, but I didn't really understand what you mean. |
Data structure: const data = [
{ text: 'Item 1', data: {id: 1} },
{ text: 'Item 2', data: {id: 2} }
] This ID is not generated automatically but it is never being rewritten |
Ok it works this way. So i if I understand |
Hello. Not sure if anyone posted this before (may be related to #69 tho), but there is a bug in ids when using Vuex. You can take a look at it here. When you click on the node in Vuex tree it changes its id. For example, if you need to pass data of currently clicked node to custom context menu (to remove node, for instance) the node with old id is passed, which makes it impossible to find this node afterwards.
Btw, thanks for the component, saved me a lot of time. Good luck with that!
The text was updated successfully, but these errors were encountered: