mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
90b9e081f5
The code block lives inside `@if (showCode())`, so hiding it destroys the DOM and showing it builds a fresh copy with no hidden lines. Nothing reapplied `setCodeLinesVisibility()`, so a collapsed block came back showing the whole file. Reapply it once the block is rendered again. It already branches on `expanded()`, so a block that was expanded stays expanded.