From ef4a9b9223d6019f0b782eb2f944f3cfe2b6ed41 Mon Sep 17 00:00:00 2001 From: Terry Truong Date: Fri, 8 Jul 2022 00:24:47 +1000 Subject: Adjust SCollapsible, allowing for v-model and @open --- src/components/AncestryBar.vue | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'src/components/AncestryBar.vue') 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(); }, -- cgit v1.2.3