Issue if the container has HTML
giosifelis opened this issue · comments
George Iosifelis commented
If the container that I am attaching the menu has HTML, it doesn't work (it works only with plain text) because there are more elements a e.target does not have the selector
to fix this i made the following changes
- at the top of the script declare a
var theMenu;
- On ContectMenu.attach after the for loop (line 532) i added:
theMenu = selector;
- On onContextMenu change
target = e.target
totarget = theMenu;
if you like the changes feel free to adapt them