Fancytree: Cannot unselelct after select mode is changed

349 Views Asked by At

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. enter image description here

I there is a way to fix this. Thanks in advance

1

There are 1 best solutions below

1
On

You could try to call tree.render(true, true) or tree.reload().

If this doesn't work, you can always traverse the tree in selectMode 2 with tree.visit() and tweak the node.selected and node.partSel properties.