Skip to content
This repository was archived by the owner on May 29, 2019. It is now read-only.
This repository was archived by the owner on May 29, 2019. It is now read-only.

Wrong behavior of a checkbox when closing dropdown menu #270

@nikitiuk0

Description

@nikitiuk0

If you open a dropdown menu and then click on a checkbox, a "change" event of the checkbox will proceed but the checkbox itself won't change its state.

Please try this example: http://jsfiddle.net/epUqq/9/

The same happens on the page: http://angular-ui.github.com/bootstrap/ . Scroll down, click on "Click me for a dropdown, yo!", then scroll up and click on a checkbox "Show backdrop".

It looks like the problem is this code (https://github.com/angular-ui/bootstrap/blob/master/src/dropdownToggle/dropdownToggle.js) :

close = function (event) {
            if (event) {
              event.preventDefault();

If the line "event.preventDefault();" is commented the bug does not appear.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions