angular material stepper: disable header navigation

后端 未结 11 996
再見小時候
再見小時候 2021-02-03 18:16

I want to navigate the stepper only through the next and back buttons.

I can\'t get this to work since users can also click each step label to navigate to any step. I c

11条回答
  •  星月不相逢
    2021-02-03 19:13

    Add this to your style sheet. I was trying to disable the header navigation. Tried many things but this hack worked. You can try this till Angular Material Team support this feature.

    ::ng-deep .mat-horizontal-stepper-header{
        pointer-events: none !important;
    }
    

提交回复
热议问题