halower / vue-tree

tree and multi-select component based on Vue.js 2.0
https://github.com/halower/vue2-tree/blob/master/README.md
MIT License
935 stars 209 forks source link

nodeSelected causes infinite update loop. #158

Closed PlainBane closed 5 years ago

PlainBane commented 5 years ago

Hi, Function nodeSelected causes

You may have an infinite update loop in a component render function.

I'm using it like this in tpl() this.$refs.tree.nodeSelected(node); Basically I want to select nodes dynamically on page load, but it seems to get in to a infinite loop.