kendo-angular
kendo-angular copied to clipboard
[ContextMenu] Sub-menus get appended to document.body when appendTo is set to another element
Describe the bug The appendTo property of the kendo-contextmenu doesn't work properly with nested menus. The root-level menu popup gets appended to the correct element - the one passed to the appendTo input. However, any sub-menus / child menus, get appended to the document.body element, which is unexpected, and can cause complications with styling.
To Reproduce
- Open this demo
- Inspect where the menu popup elements get appended
Expected behavior The sub-menu items / child menus to get appended to #dmMenuPopup - just like the root menu element does.
Screenshots

I have the same problem. Cannot apply scoped styles to sub-items.