Skip to content
This repository was archived by the owner on Nov 30, 2018. It is now read-only.
This repository was archived by the owner on Nov 30, 2018. It is now read-only.

Add Autocomplete to Parent Div Does not Work With Ui-Router #1674

@360disrupt

Description

@360disrupt

If I have two views e.g.
root.a
root.b
when in b there is the parent div but a is loaded first, then the parent div is not appended.

I think this is related to, that the function is called during the init process:
search-box-parent-model.coffee line 43:

init: =>
  if @attrs.parentdiv?
    @addToParentDiv()

Adding this to line 60 could help:

@scope.$on '$stateChangeSuccess', =>
   if @attrs.parentdiv?
      @addToParentDiv()
   else
     @addAsMapControl()

Maybe it needs to be checked if it was already added. I can create a pull request on it.

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