Skip to content

showStep's stepIndex contains previous index #103

@MartinP7r

Description

@MartinP7r

I'm on the latest version 5.1.1

http://techlaboratory.net/jquery-smartwizard#event-showstep

$("#smartwizard").on("showStep", function(e, anchorObject, stepIndex, stepDirection) {
   console.log("You are on step "+stepIndex+" now");
});

somehow this example is displaying the index of the previous step, not the current. E.g. when the event is trigger after moving from index 0 to 3, it displays 0.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions