amsik / liquor-tree

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

Inconsistent Behaviour of node selection #200

Open munjal-vandana opened 4 years ago

munjal-vandana commented 4 years ago

In my use case, when you click on a node. A request is trigged to fetch data corresponding to the clicked node.

Everything works well, except it does not update the selected class. For your reference,

on_select_node: function(){
        this.$router.push({ 
            path: `/engage/search`,
            query: Object.assign(
                {}, 
                this.$route.query, {
                    sn:selected_node,
                    sa_page:1
                }
            )
        });
}

@amsik Can you please look into this and help me with a workaround.

amsik commented 4 years ago

Hi! Can you show an example somewhere? jsfiddle or similar