You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Lit virtualizers stop updating after their host is reattached #1354
Remove a rendered Lit virtualizer host with no pending update and insert the same element again. Scrolling no longer updates the virtual rows and leaves a blank viewport beyond the initially rendered rows. This affects moving an existing custom element between containers without changing its reactive properties.
The scroll offset reaches 3500, but the list keeps rows 0–10 and the viewport is blank. Before removing the host, the same scroll operation renders rows around index 100.
Expected behavior
A reattached host resumes observing its scroll container and renders the rows at the current scroll offset.
How often does this bug happen?
Every time with the steps above.
Screenshots or Videos
The reproduction above shows the blank viewport without additional setup.
The element and window controllers share the connection lifecycle. The same element can be reattached repeatedly without changing any reactive property.
Terms & Code of Conduct
I agree to follow this project's Code of Conduct
I understand that if my bug cannot be reliable reproduced in a debuggable environment, it will probably not be fixed and this issue may even be closed.
Activity