vakata / jstree

jquery tree plugin
http://jstree.com
MIT License
5.15k stars 1.38k forks source link

Contextmenu plugin HTML element #2527

Closed Cristiian closed 3 years ago

Cristiian commented 3 years ago

Hi, Is there a way to change the element in wich the contextmenu appends to?, currently is being attatched to body tag. I'm working with an Angular application, and the contextmenu appears outside the component scope and not being shown.

thank you for your help

Captura de pantalla 2021-05-03 163658

vakata commented 3 years ago

There is not such option currently. You can temporarily fork the project and change this line and check if it solves the issue: https://github.com/vakata/jstree/blob/master/src/jstree.contextmenu.js#L486