twitter/bootstrap — Issue #704: Form inputs inside modals don't work.
Author: arthur-debert
Created: 2011-11-27 13:41:07+00:00
State: open

If you have a form inside a modal dialog with input elements, the default click handlers (e.g. for selecting files on file inputs , or checkboxes) never fire, and a user cannot interact with the form.

This happens because at[1] , all click events have their default prevented. When clicking on form elements inside the modal, bootstrap should allow the default browser behavior.

It should actually check if the event.defaultTarget came from a is(":input") el and do not capture that inside the modal.

https://github.com/twitter/bootstrap/blob/master/js/bootstrap-modal.js#L254