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

uib-dropdown - ontoggle event not fired with multiple dropdowns on one page #6316

Open
@cleon26

Description

@cleon26

When I have two dropdowns on the same page, both of which are using the on-toggle event, only one of them is called when i use the other dropdown to close the first.

In this plunker, open up your console and try this:

1, click dropdown1 to open it. you'll see an event logged "dropdown1 open"
2. click dropdown1 to close it. you'll see an event logged "dropdown1 closed"
3, click dropdown2 to open it. you'll see an event logged "dropdown2 open"
4. click dropdown2 to close it. you'll see an event logged "dropdown2 closed"
5, now click dropdown1 to open it. you'll see an event logged "dropdown1 open"
4. click dropdown2 while dropdown1 is still open. dropdown2 will open and dropdown1 will close but notice that the events only show the dropdown1 messages. Since I'm doing other things in my on-toggle event, this is causing me a problem (and my users actually have to triple click the dropdown to get it to open)

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions