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

Problem with jquery 3.5.1 #322

Open
mattymatty76 opened this issue Feb 7, 2021 · 1 comment
Open

Problem with jquery 3.5.1 #322

mattymatty76 opened this issue Feb 7, 2021 · 1 comment

Comments

@mattymatty76
Copy link

Hi everyone,
I've noticed an issue when you use jquery.steps in a context with jquery 3.5.1.
More exactly, there is a rendering problem and functional problem when you try to press on next button, in this case the system throws the following error:

Uncaught TypeError: Cannot read property 'currentIndex' of undefined
at increaseCurrentIndexBy (jquery.steps.js:528)
at goToNextStep (jquery.steps.js:459)
at HTMLAnchorElement.paginationClickHandler (jquery.steps.js:801)
at HTMLAnchorElement.dispatch (jquery.min.js:2)
at HTMLAnchorElement.v.handle (jquery.min.js:2)

otherwise if you use jquery 3.3.1 everything work very well

About rendering problem...

Screenshot_1

Thank you very much, anyway

@mattymatty76
Copy link
Author

mattymatty76 commented Feb 7, 2021

I have fixed it
The problem was when I set the structure

$(".wizard").steps({
...
labels: {
next: "<i class="icon-arrow-right14" />",
previous: "<i class="icon-arrow-left13" />",
...

in this case in jquery 3.3.1 worked, whereas in jquery 3.5.1 didn't work, but if I change the tag < i > with < span > it's ok and works also with jquery 3.5.1

just to share, I hope it helps you

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

1 participant