Fix saving options on fast proceed
Signed-off-by: Jonas Rittershofer <jotoeri@users.noreply.github.com>
This commit is contained in:
parent
6a52d83675
commit
ff9b474f4a
1 changed files with 5 additions and 3 deletions
|
|
@ -59,6 +59,11 @@ export default {
|
|||
data() {
|
||||
return {
|
||||
queue: new PQueue({ concurrency: 1 }),
|
||||
|
||||
// As data instead of Method, to have a separate debounce per AnswerInput
|
||||
debounceUpdateAnswer: pDebounce(function(answer) {
|
||||
return this.queue.add(() => this.updateAnswer(answer))
|
||||
}, 500),
|
||||
}
|
||||
},
|
||||
|
||||
|
|
@ -179,9 +184,6 @@ export default {
|
|||
console.error(error)
|
||||
}
|
||||
},
|
||||
debounceUpdateAnswer: pDebounce(function(answer) {
|
||||
return this.queue.add(() => this.updateAnswer(answer))
|
||||
}, 500),
|
||||
},
|
||||
}
|
||||
</script>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue