jQuery-contextMenu icon indicating copy to clipboard operation
jQuery-contextMenu copied to clipboard

Using originalEvent in callback

Open JohnCannonIT opened this issue 7 years ago • 1 comments

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?

JohnCannonIT avatar May 22 '18 14:05 JohnCannonIT

The 2.x version is a bit inconsistent with the arguments of the different callbacks, what callback do you mean exactly?

bbrala avatar May 25 '18 18:05 bbrala