diff --git a/src/js/mstepper.js b/src/js/mstepper.js index f22848b..3806754 100644 --- a/src/js/mstepper.js +++ b/src/js/mstepper.js @@ -629,7 +629,7 @@ class MStepper { wrapper.appendChild(stepper); // Returns the wrapper (the form) return wrapper; - } else if (form.length) { + } else if (form && form.length) { // The form exists // Returns the form return form;