Skip to content

Form inputs inside modals don't work. #704

@arthur-debert

Description

@arthur-debert

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions