Johann-S / bs-stepper

A stepper for Bootstrap 4.x
https://johann-s.github.io/bs-stepper/
MIT License
448 stars 89 forks source link

Can't use the stepper without the content #320

Open ppazos opened 9 months ago

ppazos commented 9 months ago

I tried to use just the stepper header part without the content, since the content is managed in my backend, but for doing this I'm getting a JS error:

Uncaught TypeError: o._stepsContents[e] is undefined
    a http://localhost:8095/assets/bs-stepper.min.js?compile=false:7
    e http://localhost:8095/assets/bs-stepper.min.js?compile=false:7
    <anonymous> http://localhost:8095/register/661b4503-5860-4d8b-96f1-14292114a05a:202
    jQuery 2

Seems to be looking for the content in the DOM and it's not there. The error is on this line of the min.js

!o._stepsContents[e].classList.contains(r.ACTIVE)

Which is the part after the OR in the src:

https://github.com/Johann-S/bs-stepper/blob/master/src/js/util.js#L20

So I'm not sure if this is possible, thanks!