diff options
| author | Terry Truong <terry06890@gmail.com> | 2022-07-08 00:24:47 +1000 |
|---|---|---|
| committer | Terry Truong <terry06890@gmail.com> | 2022-07-08 00:25:36 +1000 |
| commit | ef4a9b9223d6019f0b782eb2f944f3cfe2b6ed41 (patch) | |
| tree | c5838cdf157b403f07b4b90d512fb832a3dbf4d8 /src/components/AncestryBar.vue | |
| parent | 4209790a0c1737bc9cbf7df2bdcedc541b715dad (diff) | |
Adjust SCollapsible, allowing for v-model and @open
Diffstat (limited to 'src/components/AncestryBar.vue')
| -rw-r--r-- | src/components/AncestryBar.vue | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/components/AncestryBar.vue b/src/components/AncestryBar.vue index e7ba8a5..fcf9933 100644 --- a/src/components/AncestryBar.vue +++ b/src/components/AncestryBar.vue @@ -51,15 +51,6 @@ export default defineComponent({ }; }, }, - watch: { - // Used to scroll to end of bar upon node/screen changes - nodes(){ - this.$nextTick(() => this.scrollToEnd()); - }, - vert(){ - this.$nextTick(() => this.scrollToEnd()); - }, - }, methods: { // Click events onTileClick(node: LayoutNode){ @@ -83,6 +74,15 @@ export default defineComponent({ } }, }, + watch: { + // Used to scroll to end of bar upon node/screen changes + nodes(){ + this.$nextTick(() => this.scrollToEnd()); + }, + vert(){ + this.$nextTick(() => this.scrollToEnd()); + }, + }, mounted(){ this.scrollToEnd(); }, |
