Skip to content

Can't use the stepper without the content #320

@ppazos

Description

@ppazos

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions