Kinark / Materialize-stepper

A little plugin that implements a stepper to Materializecss framework.
https://kinark.github.io/Materialize-stepper/
MIT License
227 stars 60 forks source link

Stepper does not find next step if a button has an icon #111

Open Jeje2201 opened 1 year ago

Jeje2201 commented 1 year ago

Hi

In this exemple, all looks good image

But if in the button, I add an icon, then the stepper does not set to "2" the next step image

The only change was to add the icon in the button

Before : <ion-button class="button-outline temp_jeremy" onClick={() => { this.launchModal() }}>{this.translationObj.see_all_templates}</ion-button>

After : <ion-button class="button-outline temp_jeremy" onClick={() => { this.launchModal() }}><ion-icon class="reneco reneco-layers"></ion-icon>{this.translationObj.see_all_templates}</ion-button>

Im guessing that your lib may not like that a button has an icon so it mess with your stepper number ?

How can I manage to add an icon in my button ?