Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Changing v-model value when using included navigation
  • Loading branch information
service-paradis authored and jtommy committed Jul 10, 2019
1 parent 0899e0b commit 8e47f7d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/components/steps/Steps.vue
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,7 @@ export default {
if (prevItemIdx >= 0) {
prevItemIdx = this.stepItems.length - 1 - prevItemIdx
}
this.$emit('input', prevItemIdx)
this.changeStep(prevItemIdx)
},
Expand All @@ -224,6 +225,7 @@ export default {
const nextItemIdx = this.stepItems.findIndex((step, idx) => {
return idx > this.activeStep && step.visible
})
this.$emit('input', nextItemIdx)
this.changeStep(nextItemIdx)
}
},
Expand Down

0 comments on commit 8e47f7d

Please sign in to comment.