From 6b743fac77d6952c4037557fe49119366e6a3eae Mon Sep 17 00:00:00 2001 From: Christian Hartmann Date: Sun, 20 Apr 2025 21:52:56 +0200 Subject: [PATCH] fix: Preserve intermediate changes when updating answer text Signed-off-by: Christian Hartmann --- src/components/Questions/AnswerInput.vue | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/components/Questions/AnswerInput.vue b/src/components/Questions/AnswerInput.vue index bc5d99fa4..12ed284c9 100644 --- a/src/components/Questions/AnswerInput.vue +++ b/src/components/Questions/AnswerInput.vue @@ -212,6 +212,10 @@ export default { this.$emit('create-answer', this.index, newAnswer) } else { await this.updateAnswer(answer) + + // Forward changes, but use current answer.text to avoid erasing + // any in-between changes while updating the answer + answer.text = this.$refs.input.value this.$emit('update:answer', this.index, answer) } }