Skip to content

Commit

Permalink
feat: prevent dismissing the tour when using previousStep on the firs…
Browse files Browse the repository at this point in the history
…t step
  • Loading branch information
Outpox committed Mar 12, 2018
1 parent bd73513 commit fa93aac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/VTour.vue
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ export default {
}, this.mergedConfig.startTimeout)
},
previousStep () {
if (this.currentStep > this.minStep && !this.isFinished) this.currentStep--
if (this.currentStep > this.minStep + 1 && !this.isFinished) this.currentStep--
},
nextStep () {
if (this.currentStep < this.maxStep -1 && !this.isFinished) this.currentStep++
Expand Down

0 comments on commit fa93aac

Please sign in to comment.