You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The docs for addToSelection (here) mentions that mustSetFocus is an optional 2nd arg that defaults to true, similar to what the single selectNode function does.
I might be misunderstanding what "setting focus" means in this context, but I've been assuming that it means expanding collapsed parent nodes to make the selected node visible, since that's what selectNode does.
However, using addToSelection doesn't seem to have that same behavior, even if I explicitly pass 'mustSetFocus' as true.
Example jsfiddle here: https://jsfiddle.net/fj37ckye/
Clicking the "selectNode" button expands Node A to make the selected "Node C" visible.
Clicking "addToSelection" though does not expand either Node D or Node G to make the selected nodes E or H visible.
This isn't a huge issue as I've been able to manually open nodes down the chain myself to work around it, but I wanted to at least find out whether this is a bug or just me misunderstanding intended behavior.
The text was updated successfully, but these errors were encountered:
Oh my gosh thank you so much for turning that around so quickly!
And thank you for the clarification, I don't know why I didn't realize "focus" just meant standard html focus, but that absolutely makes sense.
The docs for
addToSelection
(here) mentions thatmustSetFocus
is an optional 2nd arg that defaults to true, similar to what the singleselectNode
function does.I might be misunderstanding what "setting focus" means in this context, but I've been assuming that it means expanding collapsed parent nodes to make the selected node visible, since that's what
selectNode
does.However, using
addToSelection
doesn't seem to have that same behavior, even if I explicitly pass 'mustSetFocus' as true.Example jsfiddle here:
https://jsfiddle.net/fj37ckye/
Clicking the "selectNode" button expands Node A to make the selected "Node C" visible.
Clicking "addToSelection" though does not expand either Node D or Node G to make the selected nodes E or H visible.
This isn't a huge issue as I've been able to manually open nodes down the chain myself to work around it, but I wanted to at least find out whether this is a bug or just me misunderstanding intended behavior.
The text was updated successfully, but these errors were encountered: