Skip to content

Commit ba48aa8

Browse files
authored
Merge pull request #119 from ditdot-dev/bugfix/navigation-after-complete
Fixed issue #118
2 parents fb8f076 + 26a7150 commit ba48aa8

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

src/components/FlowForm.vue

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -30,22 +30,22 @@
3030
<slot name="completeButton">
3131
<!-- Default content for the "completeButton" slot -->
3232
<button
33-
class="o-btn-action"
34-
ref="button"
35-
type="button"
36-
href="#"
37-
v-on:click.prevent="submit()"
38-
v-if="!submitted"
39-
v-bind:aria-label="language.ariaSubmitText">
33+
class="o-btn-action"
34+
ref="button"
35+
type="button"
36+
href="#"
37+
v-on:click.prevent="submit()"
38+
v-if="!submitted"
39+
v-bind:aria-label="language.ariaSubmitText">
4040
<span>{{ language.submitText }}</span>
4141
</button>
42-
<a
42+
<a
4343
class="f-enter-desc"
4444
href="#"
4545
v-on:click.prevent="submit()"
4646
v-if="!submitted"
4747
v-html="language.formatString(language.pressEnter)">
48-
</a>
48+
</a>
4949
</slot>
5050
</div>
5151
</div>
@@ -446,11 +446,11 @@
446446
goToPreviousQuestion() {
447447
this.blurFocus()
448448
449-
if (this.activeQuestionIndex > 0) {
449+
if (this.activeQuestionIndex > 0 && !this.submitted) {
450450
--this.activeQuestionIndex
451-
}
452451
453-
this.reverse = true
452+
this.reverse = true
453+
}
454454
},
455455
456456
/**

0 commit comments

Comments
 (0)