Skip to content

Commit 6b743fa

Browse files
committed
fix: Preserve intermediate changes when updating answer text
Signed-off-by: Christian Hartmann <chris-hartmann@gmx.de>
1 parent 5598b5e commit 6b743fa

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/components/Questions/AnswerInput.vue

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,10 @@ export default {
212212
this.$emit('create-answer', this.index, newAnswer)
213213
} else {
214214
await this.updateAnswer(answer)
215+
216+
// Forward changes, but use current answer.text to avoid erasing
217+
// any in-between changes while updating the answer
218+
answer.text = this.$refs.input.value
215219
this.$emit('update:answer', this.index, answer)
216220
}
217221
}

0 commit comments

Comments
 (0)