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.

Dangling typeahead popup in case of typeahead-append-to-body="true" #2551

@kdekooter

Description

@kdekooter

As demonstrated here: http://stackoverflow.com/questions/25108068/angular-bootstrap-typeahead-append-to-body-stuck/ the popup does not close when the "parent" input field is gone when moving to a different view.

The quick and dirty fix would be to explicity remove the popup from the DOM on destroy of the scope.

  originalScope.$on('$destroy', function(){
    $document.find('[id^=typeahead]').remove();
    $document.unbind('click', dismissClickHandler);
  });

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions