Skip to content

CDK Overlay Container is not re-created/re-appended when removed from the DOM #18519

@Tanemahuta

Description

@Tanemahuta

Reproduction

Steps to reproduce:

  1. Use a framework like single-spa which can load one application after another
  2. E.g. open menus from two different angular apps

Expected Behavior

The menus open and the overlay container is being used/recreated by each app.

Actual Behavior

The cdk overlay container gets set when first opening it for each app.
The last app will always win and have the correct overlay container, while the other app will reach for an element which has removed from the dom

Environment

  • Angular: 8.2.14
  • CDK/Material: 8.2.3
  • Browser(s): ALL
  • ALL

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