Skip to content

showStep showing Null instead of index 0 on initializing #109

@czkoudy

Description

@czkoudy

Describe the bug
On first initializing of smartWizard I get stepIndex of nothing ( just empty) of showStep event. But I would expect this to be 0 or whatever is set in selected.

When I click next it will log index 0 instead of 1 and so on.

Iam sure I am doing something wrong but cant figure this one out.


      $('#smartwizard').smartWizard({
        theme: 'arrows',
        enableURLhash: false,
        toolbarSettings: {
          showPreviousButton: false,
          toolbarPosition: 'bottom'
        },
        anchorSettings: {
          anchorClickable: false, // Enable/Disable anchor navigation
        },
      });

      $('#smartwizard').on("showStep", function(e, anchorObject, stepIndex, stepDirection) {
        console.log(stepIndex);
      });


    });

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions