Kinark / Materialize-stepper

A little plugin that implements a stepper to Materializecss framework.

Home Page:https://kinark.github.io/Materialize-stepper/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

autoFormCreation: false not working

Mark53CZ opened this issue · comments

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) {

Gonna fix this in the next version.
Thanks.