Tree - Context Menu - Opens up anywhere

UI Components for Angular
Post Reply
parthibansekar87
Posts: 2
Joined: 19 May 2017, 18:03

23 Jan 2018, 07:54

Hello,

In PrimeNG Tree control, the context menu opens upon right click. Ideally I expect it to open upon selecting a node and right-clicking, but it seems to work anywhere along the lines of all node records.

This is the same case even with the demos here - https://www.primefaces.org/primeng/#/tree

Please check "Context menu" in the above link, right click anywhere insided the container and you will see what I am talking about. Is there any other workaround?

Thanks in advance,
Parthiban

User avatar
sudheer
PrimeFaces Core Developer
Posts: 4345
Joined: 16 Oct 2011, 19:19
Location: Singapore

27 Jan 2018, 04:24

The contextmenu is applied on each li element. You can create a feature request to happen only for specific node area.
Author,Speaker
https://twitter.com/sudheerjonna
Github: https://github.com/sudheerj
Website http://sudheerjonna.com/

___________________
Sudheer Jonna

Post Reply

Return to “PrimeNG”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 23 guests