Tree onNodeUnselect should reselect the node, avoid default behaviour #2761
Unanswered
MehdiRaza1998
asked this question in
PrimeNG
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am using Prime ng tree for tree render in my application.
Usecase: Simply, when node is selected again (onNodeUnselect) , I want the node to be still considered as selected. So, I can call the method of NodeSelect again and retrieve the fresh data for the node.
thus the node is considered unselected, and all the selection classes are removed too.
I tried the way of applying classes (like p-highlight) to the node which just got unselected to make it look selected, but this leads to maintaining another logical stuff to assign and remove the classes, which I want to avoid.
Thanks in advance for the help.
Beta Was this translation helpful? Give feedback.
All reactions