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.

bug(modal) Modal 1 on route 1 won't show if modal 2 on route 2 has scope passed to it. #935

@Narretz

Description

@Narretz

edit: turns out this can be trivially fixed with using

modalOptions = angular.extend(angular.copy(defaultOptions), modalOptions);

instead of

 modalOptions = angular.extend(defaultOptions, modalOptions);

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

Preparation:

  1. Make two routes
  2. On both routes, open a modal (different templates and controllers)
  3. in route 2, pass route scope to modal.

Steps:

  1. route 1, open modal, close it (works)
  2. go to route 2, open modal, close it (works)
  3. Go back to route 1, open modal (backdrop shows, modal is created, but the animation never finishes)
  4. Go back to route 2, open modal (works)

Notes:
it does not happen when both modals are on the same route
passing scope : null also prevents the bug from occuring

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions