This commit is contained in:
tugcekucukoglu 2024-02-21 11:44:30 +03:00
parent 2f353f2c19
commit 15c7860624
2 changed files with 3 additions and 3 deletions

View file

@ -232,12 +232,12 @@ export default {
}, },
prevCallback(event, index) { prevCallback(event, index) {
if (index !== 0) { if (index !== 0) {
this.onItemClick(event, index - 1); this.updateActiveStep(event, index - 1);
} }
}, },
nextCallback(event, index) { nextCallback(event, index) {
if (index !== this.stepperpanels.length - 1) { if (index !== this.stepperpanels.length - 1) {
this.onItemClick(event, index + 1); this.updateActiveStep(event, index + 1);
} }
} }
}, },

View file

@ -15,7 +15,7 @@ const classes = {
'p-stepper-header', 'p-stepper-header',
{ {
'p-highlight': instance.isStepActive(index), 'p-highlight': instance.isStepActive(index),
'p-disabled': instance.isItemDisabled(step, index) 'p-disabled': instance.isItemDisabled(index)
} }
], ],
action: 'p-stepper-action', action: 'p-stepper-action',