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.
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
Asked: 2023-07-16 06:19:50 +0000
Seen: 10 times
Last updated: Jul 16 '23
Can you restate the concept of Material Requirements Planning within the context of R?
Can check-boxes be positioned to the left in Angular Material's mat-list options?
What's the method to alter the label's font size in tree view using material UI?
How can the type 'string' be made assignable to the Icon type in Material UI?
How can I obtain the index of a column in an Angular Material matTable?
What is the process for adding a custom button color in Angular Material design?
What can be done about the absence of Angular styles for material UI?
How to perform batch geocoding when longitude and latitude values are missing?
How can a new object with a specific type be created in Angular 2 using the domain model?