swisnl / jQuery-contextMenu

jQuery contextMenu plugin & polyfill
https://swisnl.github.io/jQuery-contextMenu/
MIT License
2.25k stars 745 forks source link

Make trigger accessible inside event functions #729

Open stalha97 opened 4 years ago

stalha97 commented 4 years ago

I was trying to implement the following feature but couldn't:

Open contextmenu when clicked on a button. The contextmenu has an input box. When something is typed there and "focusout" event is called, I wanted to replace the button text with what was written inside contextmenu input. The problem is that there is no way for me to access the trigger which is the button inside the event. I can only access whats written inside the menu.

Best Regards.