0

It is a simple dropdown which is supposed to close only on outside click. It used to work in the earlier version (0.13).

Am I doing something wrong. Don't want to have a work around like stop propagation and prevent default. That is my last resort.

Below is the plunkr for a simple dropdown:

http://plnkr.co/edit/A2vDHb43PThalcHAhLkJ?p=preview

    <span class="dropdown" uib-dropdown auto-close="outsideClick">
      <a href="javascript:void(0);" class="dropdown-toggle" uib-dropdown-toggle>
        Click me for a dropdown, yo!
      </a>
      <ul class="dropdown-menu">
        <li>Element 1</li>
        <li>Element 2</li>
      </ul>
    </span>

1 Answer 1

6

You should use uib-dropdown-menu directive:

<ul uib-dropdown-menu class="dropdown-menu">
    <li>Element 1</li>
    <li>Element 2</li>
</ul>

Here's a working plunker

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.