Skip to content

Class .selected applies to non-selected node #933

Closed Answered by bcakmakoglu
insssomniac asked this question in Q&A
Discussion options

You must be logged in to vote

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 to false.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by insssomniac
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants