Ask Your Question
2

In Angular Material Nested Tree, CdkDragDrop is providing incorrect index values for the drag event.

asked 2023-07-16 06:19:50 +0000

plato gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2023-07-16 06:49:01 +0000

qstack gravatar image

There could be a few reasons why the index values provided by CdkDragDrop in Angular Material Nested Tree are incorrect.

One possible reason is that the indexing system may not be considering the nested structure of the tree, leading to inconsistencies in the index values when dragging nodes within the tree. In this case, you can try updating the indexing system to account for the nested structure of the tree.

Another possible reason could be a bug or issue with the versions of Angular or Angular Material you are using. Try updating to the latest versions and see if the issue persists.

Lastly, it's also possible that you may not be setting up the CdkDragDrop events correctly or using the correct event properties to get the correct index values. Make sure to double-check your implementation and compare it with the Angular Material documentation and examples.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2023-07-16 06:19:50 +0000

Seen: 10 times

Last updated: Jul 16 '23