From 70a46eb31f71c9abdea0a9472f47aaa39b4ee1d6 Mon Sep 17 00:00:00 2001 From: Richard Tibbles Date: Tue, 25 Jun 2024 16:19:08 -0700 Subject: [PATCH] Ensure all listeners are setup before calling render to ensure answer gets set. --- .../perseus_viewer/assets/src/views/PerseusRendererIndex.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kolibri/plugins/perseus_viewer/assets/src/views/PerseusRendererIndex.vue b/kolibri/plugins/perseus_viewer/assets/src/views/PerseusRendererIndex.vue index cb928db287d..1bed1876e66 100644 --- a/kolibri/plugins/perseus_viewer/assets/src/views/PerseusRendererIndex.vue +++ b/kolibri/plugins/perseus_viewer/assets/src/views/PerseusRendererIndex.vue @@ -453,7 +453,6 @@ render(renderStateRootElement, this.$refs.perseus); }, renderNewItem() { - this.renderItem(); // Clear any pending state reset calls this.$off('itemRendererUpdated'); this.$once('itemRendererUpdated', () => { @@ -466,6 +465,7 @@ // so we need to ensure that the itemRenderer is available and up to date first. this.setAnswer(); }); + this.renderItem(); }, _resetState(val) { if (!val) {