Open
Description
Is this a regression?
- Yes, this behavior used to work in the previous version
The previous version in which this bug was not present was
No response
Description
If you have ComponentPortal with provided ViewContainerRef NgForOf can rerender component outside CdkPortalOutlet.
Looks like this code is executed only once and after NgForOf dom manipulations there is nothing that can move ComponentPortalExample to expected position
Reproduction
Steps to reproduce:
- Wait until component outlet will render component
- Drag Item 1 down
- Drag Item 1 up
- ComponentPortalExample is rendered inside item list instead of inside component outlet
instead
Expected Behavior
ComponentPortalExample should stay inside CdkPortalOutlet
Actual Behavior
ComponentPortalExample is rendered inside item list instead of inside CdkPortalOutlet