VinceG / twitter-bootstrap-wizard

This twitter bootstrap plugin builds a wizard out of a formatter tabbable structure. It allows to build a wizard functionality using buttons to go through the different wizard steps and using events allows to hook into each step individually.
MIT License
1.39k stars 676 forks source link

Previous/next should return false on href tags #111

Open JoshuaNovak919 opened 9 years ago

JoshuaNovak919 commented 9 years ago

If you click the next or previous button it actually changes the page, even in the demo on this page:

http://vadimg.com/twitter-bootstrap-wizard-example/examples/basic-progressbar.html

After clicking next or previous you will see the hash tag.

JoshuaNovak919 commented 9 years ago

You can get it to work properly if you add:

e.preventDefault();

to

this.next = function(e) {

and

this.previous = function(e) {