Open MikaStark opened 1 year ago
Any update? Does anyone have a workaround?
I have this same issue where some of the rows are not shown when the dialog is open. I'm not experiencing a loss of scroll position like the OP though. If you open the dialog at around line 20 in the example given you can see that the rows after that are not shown but the rows before still are. It appears that the translateY
of the virtual scroll and the top
of the cdk-global-scrollblock are being changed when a dialog is opened. Perhaps this is causing the issue?
Is this a regression?
The previous version in which this bug was not present was
No response
Description
cdk-virtual-scroll-viewport[scrollWindow] is empty when opening a
mat-dialog
if the window have been scrolled.When the dialog is closed, everything returns to normal but the scroll is restored to top 0.
Reproduction
Steps to reproduce:
Expected Behavior
The virtual scroll should not be influenced by dialog
Actual Behavior
Virtual scroll container become empty and when the dialog is closed the items come back but the scroll is restored to 0
Environment