Class .selected applies to non-selected node #933
-
Hi there, I'm not sure if it is a bug - when you drag&drop the node, the class .selected adds to it, but in fact it is not become selected and you can not get it with the 'getSelectedNodes' getter. Practically node becomes selected only if you click on it, but not after drag&dropping. And it seems correct, so it would be better to apply class .selected in the same cases, isn't it? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
I assume by drag & drop you mean just moving a node around? You can disable this behavior by setting |
Beta Was this translation helpful? Give feedback.
-
Thanks! That's what I need |
Beta Was this translation helpful? Give feedback.
I assume by drag & drop you mean just moving a node around?
By default nodes will be selected on drag.
The class is therefore applied and
getSelectedNodes
would return that node (which it does, I've just tested it myself).You can disable this behavior by setting
selectNodesOnDrag
tofalse
.