In my application I am switching between selectMode 1 and 3, based on what user has set the options.
When I'm in selectMode 3, I choose some nodes. Then I switch to selectMode 2. If I try to unselect a node now, it will not be unselected and gets filled (see the screenshot) until I refresh the page:
After I refresh the page it work as it should.
I there is a way to fix this. Thanks in advance
You could try to call
tree.render(true, true)
ortree.reload()
.If this doesn't work, you can always traverse the tree in selectMode 2 with
tree.visit()
and tweak thenode.selected
andnode.partSel
properties.