Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dropdown menu not hide after click in v2.1.0 #4710

Closed
mixa108 opened this issue Aug 25, 2012 · 5 comments
Closed

Dropdown menu not hide after click in v2.1.0 #4710

mixa108 opened this issue Aug 25, 2012 · 5 comments
Labels

Comments

@mixa108
Copy link

mixa108 commented Aug 25, 2012

http://twitter.github.com/bootstrap/javascript.html#dropdowns

Example: http://jsfiddle.net/6jKKP/

Bug: For tabs and navbar dropdown menu not hide after click.
But button dropdown menus work perfect. Version 2.0.4 does not have bug.

@sendtopms
Copy link

I had same issue too. Click events attached to menu link is not firing.

@baltov
Copy link

baltov commented Aug 26, 2012

Hi all,
I have same issue too, only when there is more as one data-toggle link with data-target attribute. Then getParent function return only one element, i think it is because jQuery selector $this.attr('data-target') in getParent function return only first element, when 'this' is equal to $(toggle). I delete all data-target's and it work, or change clearMenus function to ->
function clearMenus() {
$(toggle).each(function(i,v) {
getParent($(v)).removeClass('open')
});
// getParent($(toggle)).removeClass('open')
}

Hope this help

@joeframbach
Copy link

This is the actual root cause: #4628 and #4497. Events cannot be bound to elements in the dropdown, due to #4497.

@fat
Copy link
Member

fat commented Aug 27, 2012

Hey @mixa108,

Thanks for opening this issue! Unfortunately, it looks like it fails to pass the criteria neccessary for submitting to bootstrap. The following things are currently failing:

  • should include a jsfiddle/jsbin illustrating the problem if tagged with js but not a feature

For a full list of issue filing guidelines, please refer to the bootstrap issue filing guidelines.

thanks!

@fat fat closed this as completed Aug 27, 2012
@mixa108
Copy link
Author

mixa108 commented Aug 28, 2012

Added example: http://jsfiddle.net/6jKKP/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants