jerosoler / Drawflow

Simple flow library 🖥️🖱️
https://jerosoler.github.io/Drawflow/
MIT License
4.65k stars 722 forks source link

Use of nodeUnselected event #580

Closed Soumi95 closed 1 year ago

Soumi95 commented 1 year ago

Hi @jerosoler,

I want to use the node unselected event of drawflow. My requirement is - On nodeSelected event, after completing the required task, that node should be unselect. So I am trying with nodeUnselected event but it is not happening. What I am doing is, in nodeSelected event, I use dispatch to call the nodeUnselected event, it is going to nodeUnselected event but however the node is not unselected, it still remains selected. Could you please help me to figure out this problem?

Thank you in Advance.

jerosoler commented 1 year ago

The event does not deselect, it only notifies when it is deselected. View: