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

Data-feedback functions doesn't fire on step-title navigation #66

Open ghost opened 5 years ago

ghost commented 5 years ago

When linear is set, data-feedback of next-step button should be called when clicking on next step-title.

Kinark commented 5 years ago

This is also theoretical problem.

When I've made the data-feedback into the buttons I wanted to have a way to offer an option for the users to skip the feedback, if necessary.

I believe that the best solution is to add feedback functions to the steps themselves as well (despite the buttons).

ghost commented 5 years ago

That's a good idea. I think all feedback and validation functions should be done on step switch

Kinark commented 5 years ago

The problem with this is that what if you want to do an optional feedback-function? The others validation functions are all executed on step switch.