Skip to content

Commit ae78c2c

Browse files
authored
Merge pull request #2801 from nextcloud/backport/2714/stable5
[stable5] fix: Preserve intermediate changes when updating answer text
2 parents 85622e6 + a434aa9 commit ae78c2c

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)