jquery-steps icon indicating copy to clipboard operation
jquery-steps copied to clipboard

Problem with jquery 3.5.1

Open mattymatty76 opened this issue 4 years ago • 1 comments

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 avatar Feb 07 '21 11:02 mattymatty76

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

mattymatty76 avatar Feb 07 '21 13:02 mattymatty76