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

Two clicks needed to open dropdown #2420

Closed
lenkaiser opened this issue Jul 4, 2014 · 2 comments
Closed

Two clicks needed to open dropdown #2420

lenkaiser opened this issue Jul 4, 2014 · 2 comments

Comments

@lenkaiser
Copy link

When Angular-UI is loaded and you're already using a dropdown menu the use has to click twice to open the dropdown. I think that Angular-UI is reacting first which doesn't do anything because the right properties aren't set and on the second click bootstrap it self will fire.

Currently I'm using Bootstrap 3.1.1 and Angular-UI 0.11.0. Below is the HTML I use to place a dropdown menu in a navbar.

<nav class="navbar navbar-default navbar-fixed-top" role="navigation" style="margin-bottom: 0">
    <div class="navbar-header">
        <a class="navbar-brand" href="index.html">Index</a>
    </div>

    <ul class="nav navbar-top-links navbar-right">
        <li class="dropdown">
            <a class="dropdown-toggle" data-toggle="dropdown">
                <i class="fa fa-user fa-fw"></i> <i class="fa fa-caret-down"></i>
            </a>
            <ul class="dropdown-menu dropdown-user">
                <li><a href="#/account"><i class="fa fa-user fa-fw"></i> User Profile</a>
                </li>
                <li><a href="#"><i class="fa fa-gear fa-fw"></i> Settings</a>
                </li>
                <li class="divider"></li>
                <li><a href="#" ng-click="logout();"><i class="fa fa-sign-out fa-fw"></i> Logout</a>
                </li>
            </ul>
        </li>
    </ul>
</nav>
@lijuenc
Copy link

lijuenc commented Jul 8, 2014

refer to: #2156

@PowerKiKi
Copy link
Contributor

@lenkaiser could you please close this issue since it's a duplicate ?

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

No branches or pull requests

3 participants