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

autoFormCreation: false not working #73

Closed Mark53CZ closed 5 years ago

Mark53CZ commented 5 years ago

materialize-stepper.js:591 Uncaught TypeError: Cannot read property 'length' of null at materialize-stepper.js:591 at MStepper._init (materialize-stepper.js:53) at new MStepper (materialize-stepper.js:699)

Browser: Google Chrome 74.0.

I fixed it by changing line 591 from: } else if (form.length) { to else if (form !== undefined && form !== null && form.length) {

Kinark commented 5 years ago

Gonna fix this in the next version. Thanks.