Angular material stepper previous button does not work with linear

1.8k views Asked by At

I have a material stepper and the mode is set to linear.

next button is working just fine but the pevious button is not working.

I also tried to work with matStepperPrevious & matStepperNext

Link to the stackblitsz I created: https://stackblitz.com/edit/angular-ivy-galdj7?file=src/app/app.component.ts

1

There are 1 answers

2
Faizal Hussain On

adding to @MoxxiManagarm comment youre setting editable to flase remove it and add this

 oneStepBack() {
 this.stepper.previous();
}