You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 14, 2021. It is now read-only.
An external framework is sending me a "right-click" event. I therefore use programmatic contextmenu("open", event, extraData) to open the context menu. I need to pass the framework's object through to the contextmenu's callbacks. This works in the beforeOpen() handler, but not in the select() handler, which I need. Is this a "bug" or an "enhancement" or what is the intended behaviour?
Skeleton:
frameworkObject.onRightClick(event)
{
$(document).contextmenu("open", event, { mydata: this; });
}
contextMenu = {
beforeOpen: function (event, ui)
{
// ui.extraData.mydata is nicely available here
},
select: function (event, ui)
{
// ui.extraData is **not** available here
// ui.item.data() does not help here either
}
}