Open buzzclue opened 2 years ago
mounted() { console.log(this.$refs.vaults.selected()) this.$nextTick(() => { console.log(this.$refs.vaults.selected()) }); },
How to get the selected notes on mounted hook? Even the $nextTick returns 0 when there are selected item in tree data?
I found a workaround, in the mounted event of component I got the selected nodes.
this.$refs.vaults.$on("tree:mounted", (tree) => { console.log(this.$refs.vaults.selected()) });
How to get the selected notes on mounted hook? Even the $nextTick returns 0 when there are selected item in tree data?