This repository has been archived by the owner on May 29, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6.7k
Wrong behavior of a checkbox when closing dropdown menu #270
Labels
Comments
@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. |
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
added a commit
to bekos/bootstrap
that referenced
this issue
Jan 19, 2014
Closes angular-ui#270 Closes angular-ui#284 Closes angular-ui#1447 Closes angular-ui#1558 feat(dropdown): fix
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 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
added a commit
to bekos/bootstrap
that referenced
this issue
Jan 21, 2014
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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) :
If the line "event.preventDefault();" is commented the bug does not appear.
The text was updated successfully, but these errors were encountered: