reachtokish / rctx-contextmenu

:bowtie: :sparkles: Context menu for React
https://reachtokish.github.io/rctx-contextmenu/
67 stars 15 forks source link

Nested Triggers #23

Closed lperezdude closed 3 years ago

lperezdude commented 3 years ago

Relevant code or config

<>
<ContextMenuTrigger id={menuOne}>
       ....
              <ContextMenuTrigger id={menuTwo}>
              .....
              </ContextMenuTrigger>
          ...
</ContextMenuTrigger>
      <ContextMenu id={menuOne}>
        ... menu 1
      </ContextMenu>
      <ContextMenu id={menuTwo}>
        .... menu 2
      </ContextMenu>
</>

What you did: I'm trying to have a trigger inside another trigger, i figured the nested item would get the click event first. What happened: When tried to right click the trigger 2 menu 1 comes up Problem description: When tried to right click the trigger 2 menu 1 comes up. Suggested solution: Have nested triggers work properly inside other triggers.

reachtokish commented 3 years ago

Hi @lperezdude, thanks for reporting the issue. Let me check the issue and resolve it.

reachtokish commented 3 years ago

Hey @lperezdude, the issue is resolved in the current version of the library which is 1.3.5. Kindly update the version of the library inside your app. I've added an example as well.

Closing the issue. Kindly reopen it if you get the issue again.