Skip to content

Issue injecting multi-select directive into another directive with same scope #572

Open
@highelves

Description

@highelves

Hi, I'm basically trying to build an app containing multiple directives. I appreciate the code snippet overall. I am able to use your directive seamlessly over another plain AngularJS view.

Issue: I'm trying to inject your multi-select directive into a modal directive (modal window), which is failing here with the error

TypeError: Cannot read property 'getElementsByTagName' of undefined at Scope.$scope.getFormElements
I see that over the line element.children().children().next().children().children()[ 0 ] , it is receiving the element.children().children() as empty HTMLCollection [] , thereby returning undefined,

Can you give any suggestions?
[Already checked #201 , not related to that]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions