Skip to content

Dropdowns always open if any parent has .open #3420

Closed
@mattdwen

Description

With 2.0.3, the dropdowns.less at line 101 file specifies:

.open {
// IE7's z-index only goes to the nearest positioned ancestor, which would
// make the menu appear below buttons that appeared later on the page
*z-index: @zindexDropdown;

.dropdown-menu {
display: block;
}
}

Which makes any dropdown with a parent .open, open as default.

Changing 106 to:

> .dropdown-menu {

forces it so only direct child drop-downs are open.

Activity

added a commit that references this issue on May 14, 2012

#3420: properly scope dropdown open state to immediate children only

mdo

mdo commented on May 14, 2012

@mdo
Member

Fixed in 2.0.4-wip.

added a commit that references this issue on Apr 11, 2014

(less) twbs#3420: properly scope dropdown open state to immediate chi…

added a commit that references this issue on Nov 4, 2014

(less) twbs#3420: properly scope dropdown open state to immediate chi…

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Dropdowns always open if any parent has .open · Issue #3420 · twbs/bootstrap