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

Next doesn't work right if sibling elements are present that do not match ".step" #50

Open
rinogo opened this issue Nov 27, 2017 · 1 comment

Comments

@rinogo
Copy link

rinogo commented Nov 27, 2017

Not enough time to make a proper PR, but I'll post this here in case it helps anyone.

I'm hiding steps in my backend code by changing the class on a step from .step to .hidden-step. This works great, but navigating with the "Next" button causes the plugin to attempt to show our .hidden-step element instead of skipping it and showing the next .step element.

Here's the fix. Make the change to the _navigate() function:

// var step1 =  this.steps.filter("#" + step).next().attr("id"); //Original, gets next sibling (regardless of what it is!).
var step1 =  this.steps.filter("#" + step).nextAll(".step").first().attr("id"); //Fixed by rinogo, 11/27/17, gets next ".step"
@husnain-aslam
Copy link

Update jQuery Validation and jQuery UI to latest versions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants