Skip to content

Find out which element on page has opened the menu #579

Open
@mtwallet

Description

@mtwallet

Hi there,

Is there any way of finding out the element that opened the menu on right click? I can see how to do that for the menu items but not the element that triggers the menu to open.

I can do this:

$('.selector').contextmenu(function (e) { console.log($(e.target)) })

but I'm unsure if there's an official/better way.

Many thanks in advance.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions