onSelect and onUnselect TreeTable and Tree doesn't work.

UI Components for React
Post Reply
lauraC
Posts: 1
Joined: 28 Jan 2019, 09:03

28 Jan 2019, 09:15

Hei,

I have used TreeTable and Tree from PrimeReact to display some info.
The onUnselect is not working when i want to unselect the node, it always enter in the onSelect method.
Also the example from your webpage(chose Data -> TreeTable then , please see the Events example, and you'll notice that is not working accordingly, it always enter on onSelect method and onUnselect method is ignored.

Please let me know when it is working.

Thanks a lot,
Laura

merve7
Posts: 431
Joined: 12 Sep 2017, 10:44

15 Feb 2019, 16:50

Hi,
You need to use metakeys or add metaKeySelection={false} in your code for unselection. Please, see metaKeySelection prop in Properties topic in http://primefaces.org/primereact/#/treetable

Post Reply

Return to “PrimeReact”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 1 guest