It appears you need originalEvent in callback in order to get data that came from the element you right clicked on in the first place. However, I have tried many variations and I can't figure out how to use it. If anything, it appears that originalEvent itself is undefined (though not sure how that can be - you have to right-click on SOMETHING to get the context-menu to appear). I've searched all over the internet and this site and can't find anything. How do you properly use callbacks and the originalEvent to get data on what was originally right-clicked?
It appears you need originalEvent in callback in order to get data that came from the element you right clicked on in the first place. However, I have tried many variations and I can't figure out how to use it. If anything, it appears that originalEvent itself is undefined (though not sure how that can be - you have to right-click on SOMETHING to get the context-menu to appear). I've searched all over the internet and this site and can't find anything. How do you properly use callbacks and the originalEvent to get data on what was originally right-clicked?