Actually I think I just figured it out.  Check fiddle below.  You need to 
add [type='button'] to every element that has ["data-dismiss="modal"].  I 
added this to the close button at the bottom .

http://jsfiddle.net/burtonrhodes/L3m9Q/18/


On Friday, August 24, 2012 2:42:53 PM UTC-5, carlosz wrote:
>
> Hi,
>
> I'm using Bootstrap 2.1.0, I have a modal form, my problem is that the 
> submit action isn't called when the user presses enter on the input, 
> instead it just closes the modal.
>
> Here's a sample: http://jsfiddle.net/L3m9Q/1/
>
> I was wondering if I should submit an issue about this? since submitting 
> the form is the default behavior of html.
>
> Meanwhile, I was thinking about setting up a keypress listener for the 
> enter key, but reading the comments here: 
> http://stackoverflow.com/a/478239 seems like it will mess up autocomplete 
> and password saving. Do you have any other ideas?
>
> Thanks for the help!
> --
> CarlosZ
>

Reply via email to