Skip to content

Commit

Permalink
Refactor #5266
Browse files Browse the repository at this point in the history
  • Loading branch information
tugcekucukoglu committed Feb 21, 2024
1 parent 2f353f2 commit 15c7860
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions components/lib/stepper/Stepper.vue
Original file line number Diff line number Diff line change
Expand Up @@ -232,12 +232,12 @@ export default {
},
prevCallback(event, index) {
if (index !== 0) {
this.onItemClick(event, index - 1);
this.updateActiveStep(event, index - 1);
}
},
nextCallback(event, index) {
if (index !== this.stepperpanels.length - 1) {
this.onItemClick(event, index + 1);
this.updateActiveStep(event, index + 1);
}
}
},
Expand Down
2 changes: 1 addition & 1 deletion components/lib/stepper/style/StepperStyle.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const classes = {
'p-stepper-header',
{
'p-highlight': instance.isStepActive(index),
'p-disabled': instance.isItemDisabled(step, index)
'p-disabled': instance.isItemDisabled(index)
}
],
action: 'p-stepper-action',
Expand Down

0 comments on commit 15c7860

Please sign in to comment.