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

resetStepper(); and updateStepper(); #80

Closed Lunok closed 4 years ago

Lunok commented 5 years ago

Hello, it's me again!

I"d like to make a suggestion about the resetStepper() function, is it possible to reset the titles of the steps with this function ?

All fields are effectively reset and we return to step 1 but the step titles remain visually validated or maybe I missed something ?

The same thing happens on the demo: https://kinark.github.io/Materialize-stepper/?api_reset_demo_email=rgerger%40hotmail.fr&api_reset_demo_password=sdfsdfsd

Thanks

Kinark commented 5 years ago

Yeah, it's a bug :/ I'm gonna fix it in the next version

Lunok commented 5 years ago

@Kinark Hello, I'd like to inform you that the "updateStepper()" function returns the error "updateStepper() is not a function". However, it can be used by calling it this way: "instance.updateStepper".

Kinark commented 5 years ago

Are you sure? How can it be called just by referencing a variable?

Lunok commented 5 years ago

Yes, I use webpack-encore (with Symfony), I don't know if it can be linked... But the bug is really strange, I don't understand it either! I proceeded exactly as explained on the documentation. In the evening, I will create an empty html page and put the stepper on it, it will help to see if the bug happens again, I'll keep you informed.

Kinark commented 5 years ago

Thanks for helping me debugging :D

Lunok commented 5 years ago

Sorry for the late answer. I've tested the resetStepper() function with just a simple html page and it works perfectly, so i think the problem is caused by the webpack-encore, I'll investigate further to find the problem. For the moment I'm on holiday, I will resume my research when I come back ;D

Kinark commented 5 years ago

No problem! Thanks for using MStepper :D