clu3 / bootstro.js

Tiny JS library using bootstrap's popovers to help guide your users around your website
http://clu3.github.io/bootstro.js/
MIT License
1.33k stars 235 forks source link

Finish button prevent default #32

Open ignaciocarre opened 11 years ago

ignaciocarre commented 11 years ago

The finish bootstro sometimes submits the form.

posible fix:

//end of show $("html").on('click.bootstro', ".bootstro-finish-btn", function(e) { e.preventDefault();//add this line bootstro.stop(); });

clu3 commented 11 years ago

Thanks, sorry for the late reply. I've made the change

cjnimes commented 10 years ago

This correction isn't included in bootstro.min.js!

albertjose commented 5 years ago

This solved for me:

//end of show
$("html").on('click.bootstro', ".bootstro-finish-btn", function(e){
    e.preventDefault();
    e.stopPropagation();
    bootstro.stop();
});