Skip to content

Commit 7b9f0e8

Browse files
committed
Add "answer" and "step" events
1 parent 49111d5 commit 7b9f0e8

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/components/FlowForm.vue

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -472,6 +472,8 @@
472472
*/
473473
onQuestionAnswered(question) {
474474
if (question.isValid()) {
475+
this.$emit('answer', question)
476+
475477
if (this.activeQuestionIndex < this.questionListActivePath.length) {
476478
++this.activeQuestionIndex
477479
}
@@ -494,6 +496,8 @@
494496
495497
this.$refs.button && this.$refs.button.focus()
496498
}
499+
500+
this.$emit('step', this.activeQuestionId, this.activeQuestion)
497501
})
498502
})
499503
} else if (this.completed) {

0 commit comments

Comments
 (0)