Skip to content

Dropdowns close when anything vaguely bound to it updates #301

@BenWoodford

Description

@BenWoodford

EDIT: Wasn't the line I thought it was, but something is very off.

Whenever anything in my app updates that has some distant binding to the dropdown, the dropdown closes without firing closeMenu.

It seems that the link function on the directive is called every time something happens within any sort of scope with it, because of how bindings work... and this is calling the following line:

if(dropdown) {
    dropdown.css('display', 'none');
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions