[v1-beta] QTree expand parent node on select child
-
Is there a
QTree
property to expand parent node on select child viaselected.sync
?Is this the only possible way or is it more elegant?
watch: { selectedNodeKey: function (newKey) { this.$refs.tree.setExpanded(this.$refs.tree.meta[newKey].parent.key, true) } }
Pkg quasar........ v1.0.0-beta.13
Pkg @quasar/app... v1.0.0-beta.13