dash14 / v-network-graph

An interactive network graph visualization component for Vue 3
https://dash14.github.io/v-network-graph/
MIT License
495 stars 44 forks source link

focus ring not shown when modifying selected-nodes #51

Closed ecme2 closed 2 years ago

ecme2 commented 2 years ago

When programmatically modifying the v-model variable of selected-nodes, the focus ring doesn't show up.

Steps to reproduce:

Note that selecting nodes via mouse cursor makes the focus ring appear as expected, and does change selectedNodes appropriately.

dash14 commented 2 years ago

Hi @ecme2, Thank you for the detailed report, including the reproduction steps. I was able to reproduce and check the behavior of the issue.

If selectedNodes is declared as a ref and the whole array is replaced, the change was detected. But, it was not detected in the change of array contents.

I have fixed it, please check v0.5.11.

Best Regards,