amsik / liquor-tree

Tree component based on Vue.js
MIT License
398 stars 93 forks source link

Filter doesn't work after set new data on tree #168

Open EliasZhang9 opened 5 years ago

EliasZhang9 commented 5 years ago

Hello everyone, I got one problem. I use this.$refs.tree.setModel(this.newTreeData)for reloading different data according to user clicking. But if there is some initial value in the filter. Then reload different data. The tree doesn't expend to show the content which is fit for the filter. I have to retype on the filter. then the tree works

EliasZhang9 commented 5 years ago

Make it more simply. The tree doesn't work with filter when filter has an initial value