twitter-bootstrap-wizard icon indicating copy to clipboard operation
twitter-bootstrap-wizard copied to clipboard

onPrevious is not providing correct index value

Open jpatel3 opened this issue 11 years ago • 2 comments

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.

jpatel3 avatar Oct 17 '14 18:10 jpatel3

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

VinceG avatar Oct 19 '14 19:10 VinceG

@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

jpatel3 avatar Oct 21 '14 14:10 jpatel3