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

Wrong behavior of a checkbox when closing dropdown menu #270

Closed
nikitiuk0 opened this issue Mar 26, 2013 · 2 comments
Closed

Wrong behavior of a checkbox when closing dropdown menu #270

nikitiuk0 opened this issue Mar 26, 2013 · 2 comments

Comments

@nikitiuk0
Copy link

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.

@ajoslin
Copy link
Contributor

ajoslin commented Jul 27, 2013

@DemonShi sorry for late response.

If you have a fix for this, please open a PR.

Refactor is being worked on, #284, so we will probably not fix this bug at the moment.

@ajoslin ajoslin closed this as completed Jul 27, 2013
@bekos
Copy link
Contributor

bekos commented Jan 19, 2014

Since #284 is not finished and this has not been solved yet it should be open. You can reproduce by opening a dropdown and then clicking on accordion's checkbox.

@bekos bekos reopened this Jan 19, 2014
bekos added a commit to bekos/bootstrap that referenced this issue Jan 19, 2014
bekos added a commit to bekos/bootstrap that referenced this issue Jan 20, 2014
@bekos bekos closed this as completed in ae31079 Jan 21, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants