From eec0ff67b320c73581274709848c13bf8e925eeb Mon Sep 17 00:00:00 2001 From: Willem van den Ende Date: Fri, 15 May 2026 16:18:39 +0100 Subject: [PATCH] fix(microprints): pass unique id to source_viewer to fix DOM state - source_viewer now receives id="source-viewer-#{path}" for unique DOM ids - Fixes stale content bug when switching between expanded files --- app/lib/firehose_web/live/microprints_live.ex | 1 + 1 file changed, 1 insertion(+) diff --git a/app/lib/firehose_web/live/microprints_live.ex b/app/lib/firehose_web/live/microprints_live.ex index 69542ed..7791cab 100644 --- a/app/lib/firehose_web/live/microprints_live.ex +++ b/app/lib/firehose_web/live/microprints_live.ex @@ -81,6 +81,7 @@ defmodule FirehoseWeb.MicroprintsLive do content={source} highlighted_line={@highlighted_line} language="elixir" + id={"source-viewer-" <> path} /> <% end %> <% else %>