kendo-angular icon indicating copy to clipboard operation
kendo-angular copied to clipboard

[ContextMenu] Sub-menus get appended to document.body when appendTo is set to another element

Open gkarapeev opened this issue 5 years ago • 1 comments

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

  1. Open this demo
  2. 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 image

gkarapeev avatar Sep 22 '20 08:09 gkarapeev

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

vokanred avatar Jul 13 '22 09:07 vokanred