From 86f5f558e61717ac98b9cfd4ce0bb556943850d2 Mon Sep 17 00:00:00 2001 From: Zhigang Wang Date: Wed, 26 Jun 2024 16:07:40 -0700 Subject: [PATCH] temporarily change to using sync way to fire 'update:content' in FreeleapsEditor to avoid null content --- frontend/src/components/FreeleapsEditor.vue | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/frontend/src/components/FreeleapsEditor.vue b/frontend/src/components/FreeleapsEditor.vue index d29fa1e..2290dc8 100644 --- a/frontend/src/components/FreeleapsEditor.vue +++ b/frontend/src/components/FreeleapsEditor.vue @@ -307,9 +307,11 @@ export default { updateAction($event) { let html = $event.target.innerHTML || '' - setTimeout(() => { - this.$emit('update:content', html) - }) + //TODO: need to revise afte confirming the timeout approach is working + this.$emit('update:content', html) + // setTimeout(() => { + // this.$emit('update:content', html) + // }) } } }