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

Form doesn't validate if pills clicked #17

Closed
cmawhorter opened this issue Feb 22, 2013 · 1 comment
Closed

Form doesn't validate if pills clicked #17

cmawhorter opened this issue Feb 22, 2013 · 1 comment

Comments

@cmawhorter
Copy link

Was just clicking through the examples and found a problem with: http://vadimg.com/twitter-bootstrap-wizard/examples/basic-formvalidation.html

If you click next you get "enter your name" as you should, but if you click on the pills above it jumps to whichever tab you want regardless of if the form is valid.

@VinceG
Copy link
Owner

VinceG commented Feb 22, 2013

This is not a bug i've just added the validation to the onNext event not the onTabClick. Either add the same validation to the onTabClick event or return false in the onTabClick event to prevent the user from navigating to the next tab by clicking one of them.

Thanks.

@VinceG VinceG closed this as completed Feb 22, 2013
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants