Skip to content
This repository has been archived by the owner on Aug 6, 2019. It is now read-only.

onPrevious is not providing correct index value #104

Open
jpatel3 opened this issue Oct 17, 2014 · 2 comments
Open

onPrevious is not providing correct index value #104

jpatel3 opened this issue Oct 17, 2014 · 2 comments

Comments

@jpatel3
Copy link

jpatel3 commented Oct 17, 2014

For some reason onPrevious is not giving right index value

onPrevious: function( tab, navigation, index ){
}

If I have 4 items in the wizard and from the last item if I click on previous it doesn't give right value.

@VinceG
Copy link
Owner

VinceG commented Oct 19, 2014

@jpatel3 what value does it give? and what value are you expecting?

@jpatel3
Copy link
Author

jpatel3 commented Oct 21, 2014

@VinceG Similar behavior as onNext, index variable should have the value of the current tab, however I think in onPrevious it gives one value less. In order to get the current tab index, you have to do index+1

naveedyousaf09 added a commit to naveedyousaf09/twitter-bootstrap-wizard that referenced this issue Jan 13, 2016
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants