We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 94adbdd commit 255117dCopy full SHA for 255117d
demo/src/components/MyTour.vue
@@ -64,18 +64,17 @@ export default {
64
],
65
callbacks: {
66
onPreviousStep: this.myCustomPreviousStepCallback,
67
- onNextStep: this.myCustomNextStepCallback,
68
- onStop: () => {
69
- window.scroll({
70
- top: 0,
71
- behavior: 'smooth'
72
- })
73
- }
+ onNextStep: this.myCustomNextStepCallback
74
}
75
76
},
77
mounted: function () {
78
this.$tours['myTour'].start()
+
+ // A dynamically added onStop callback
+ this.callbacks.onStop = () => {
+ document.querySelector('#v-step-0').scrollIntoView({behavior: 'smooth'})
+ }
79
80
methods: {
81
nextStep () {
0 commit comments