angular / components

Component infrastructure and Material Design components for Angular
https://material.angular.io
MIT License
24.38k stars 6.75k forks source link

virtual scroll: template portal issue #11323

Open amcdnl opened 6 years ago

amcdnl commented 6 years ago

Issue

When you combine the virtual scroll with a directive that uses the portal on the item you are repeating it creates oddness. If you move the item to any child element of the repeat, it works fine.

amcdnl commented 6 years ago

@mmalerba - I spoke w/ @crisbeto on this, our conclusion was since its a directive using the repeated items view container the virtual repeat probably moves some containers around when it attaches/detaches. I don't believe this will be an issue if you use a Component directive since it creates it own VCR.

@jelbourn - Just something to note that anything that is ON the vs repeat sharing the VCR will not work currently.