Welcome to the Angular feedback portal. We’re happy you’re here! If you have feedback on how to improve the Angular, we’d love to hear it!>
Thanks for joining our community and helping improve Syncfusion products!
Hello,
There seems to be a bug with the Treeview control when using the context menu.
In your example of "Process the tree node operations using context menu in Angular Treeview component" you update the context menu items visibility in the "beforeOpen" event based on the Treeview selection.
The problem is that when the user right clicks on an item that is not currently selected, the "beforeOpen" event is called before treeview updated the current selection and only later the treeview sets the right clicked item as selected. so the context menu has the wrong items.
You can easily reproduce this bug in your example here: https://ej2.syncfusion.com/angular/documentation/treeview/how-to/process-the-tree-node-operations-using-context-menu
Thanks for your support.