bug(Overlay): When attaching an overlay to the DOM, the whole page flickers #19476
Labels
needs: clarification
The issue does not contain enough information for the team to determine if it is a real bug
Reproduction
Steps to reproduce:
Expected Behavior
When I call this sequence of actions I expect to see a modal without causing the page to flicker.
Actual Behavior
for a fraction of a second all texts are invisible on the page
which creates and effect of flickering, the texts are there in the DOM, but not visible
then the PortalOverlay is shown. This happens only the first time I open a CDKPortal
Subsequent call do not provoke this issue.
Looking at the page source initially the cdk-overlay-container is not present in the DOM, it stays there after I close the "modal". Happens the same with MatDialog
Digging deeper
this line cause the whole texts to disappear.
At this moment all texts are invisible.
Further researching and creating base templateRef with a an ng-container as ViewContainerRef, the insert method cause the whole app to flicker.
So this must be a bug in Angular
Environment
The text was updated successfully, but these errors were encountered: