Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

showStep showing Null instead of index 0 on initializing #109

Closed
czkoudy opened this issue Oct 28, 2020 · 1 comment
Closed

showStep showing Null instead of index 0 on initializing #109

czkoudy opened this issue Oct 28, 2020 · 1 comment
Labels

Comments

@czkoudy
Copy link

czkoudy commented Oct 28, 2020

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);
      });


    });
@techlab techlab added the bug label Jun 12, 2022
@techlab
Copy link
Owner

techlab commented Jun 26, 2022

Fixed the issue on v6. Please see https://github.com/techlab/jquery-smartwizard/releases/tag/v6.0.1
Demo: http://techlaboratory.net/projects/demo/jquery-smart-wizard/v6/#step-1

@techlab techlab closed this as completed Jun 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants