We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dd17a40 commit 43cf731Copy full SHA for 43cf731
src/packages/__VUE/tour/index.taro.vue
@@ -242,7 +242,7 @@ export default create({
242
() => props.modelValue,
243
(visible) => {
244
if (visible) {
245
- state.active = props.type === 'step' ? Math.min(props.current, props.steps.length - 1) : 0
+ state.active = props.type === 'step' ? Math.min(Math.max(0, props.current), props.steps.length - 1) : 0
246
getRootPosition()
247
}
248
state.showTour = visible
0 commit comments