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

Calling .bootstrapWizard('previous') does not seem to trigger onTabShow event.

Open AronDavis opened this issue 8 years ago • 6 comments

AronDavis avatar Jun 15 '16 16:06 AronDavis

@AronDavis Did you found a solution to this? I am using version version 1.3.1

jiggneshhgohel avatar Apr 19 '17 15:04 jiggneshhgohel

@jiggneshhgohel I don't remember if I did, but you can probably rig something with jQuery to have it trigger the event.

AronDavis avatar Apr 19 '17 17:04 AronDavis

Thanks @AronDavis for your prompt response and suggestion. I will try everything I can because this behaviour is hampering one of the critical features in my application.

@VinceG if you can be kind enough to comment along it would be a great help.

Thanks.

jiggneshhgohel avatar Apr 19 '17 18:04 jiggneshhgohel

@jiggneshhgohel Yes it won't call on tab show when you use previous/next events. You can call reset which will trigger the ontabshow but will also detach and reattach the handlers.

VinceG avatar Apr 19 '17 19:04 VinceG

Thanks @VinceG. I will try your suggested solution.

jiggneshhgohel avatar Apr 19 '17 19:04 jiggneshhgohel

I solved my problem using the combination of onNext and onPrevious and OnTabShow events callback as demonstrated in the examples https://github.com/VinceG/twitter-bootstrap-wizard/blob/1.3.1/examples/basic-formvalidation.html#L157

I added 1.3.1 version examples link because I am using 1.3.1 version in my application.

Thanks for all the support.

jiggneshhgohel avatar Apr 20 '17 13:04 jiggneshhgohel