From 249fc00003b24f80eda78b94dc31627ab775a4ea Mon Sep 17 00:00:00 2001 From: SquiddyPoos Date: Tue, 19 Sep 2023 00:06:32 +0800 Subject: [PATCH] ? --- frontend/src/components/notebookViewer/HTMLOutput.vue | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/frontend/src/components/notebookViewer/HTMLOutput.vue b/frontend/src/components/notebookViewer/HTMLOutput.vue index 8aa7bef..3523081 100644 --- a/frontend/src/components/notebookViewer/HTMLOutput.vue +++ b/frontend/src/components/notebookViewer/HTMLOutput.vue @@ -11,8 +11,6 @@ export default class HTMLOutput extends Vue { @Prop(String) readonly html!: string; htmlDiv!: HTMLDivElement; - - recurseDescendants (node: Element) { for (var i = 0; i < node.children.length; i++) { var child = node.children[i]; @@ -28,7 +26,10 @@ export default class HTMLOutput extends Vue { mounted() { - this.recurseDescendants(this.htmlDiv); + console.log("running scripts"); + this.$nextTick(() => { + this.recurseDescendants(this.htmlDiv); + }); } }