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

Always toggle the dropdowns when clicking on the toggle trigger #874

Closed
wants to merge 1 commit into from

Conversation

foca
Copy link

@foca foca commented Jan 2, 2012

Before this commit, whenever a dropdown menu is open and you click on the .dropdown-toggle link, it would remain open.

This commit will change that so the menu is closed by clicking again on the trigger.

@@ -41,9 +41,7 @@

$parent.length || ($parent = $this.parent())

clearMenus()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why remove this?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hm, now that you ask… I was only trying with a single drop down menu,
so I never noticed why that was there.

However, without removing that it won't hide the drop down when you
click on it while open. I'll look into it further tomorrow.

Cheers,

2012/1/2 Jacob Thornton
reply@reply.github.com:

@@ -41,9 +41,7 @@

       $parent.length || ($parent = $this.parent())

  •      clearMenus()

why remove this?


Reply to this email directly or view it on GitHub:
https://github.com/twitter/bootstrap/pull/874/files#r322803

@fat
Copy link
Member

fat commented Jan 7, 2012

feel free to reopen with correct code

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

Successfully merging this pull request may close these issues.

2 participants