From 834d2fc1ee2d92b7a8397ca88607668a158fd42a Mon Sep 17 00:00:00 2001 From: justin Date: Wed, 29 Apr 2026 01:18:11 -0500 Subject: [PATCH] Keep officer suggestions visible after selection, highlight chosen one Co-Authored-By: Claude Opus 4.6 (1M context) --- site/src/components/intake/steps/OfficerStep.astro | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/site/src/components/intake/steps/OfficerStep.astro b/site/src/components/intake/steps/OfficerStep.astro index 2f6cb43..48f5ae2 100644 --- a/site/src/components/intake/steps/OfficerStep.astro +++ b/site/src/components/intake/steps/OfficerStep.astro @@ -186,7 +186,12 @@ if (s.city) f.city.value = s.city; if (s.state) f.state.value = s.state; if (s.zip) f.zip.value = s.zip; - suggestDiv.hidden = true; + // Keep suggestions visible so user can pick a different one + btn.style.borderColor = "#3b82f6"; + btn.style.background = "#eff6ff"; + listDiv.querySelectorAll(".pw-suggest-btn").forEach((b: Element) => { + if (b !== btn) { (b as HTMLElement).style.borderColor = ""; (b as HTMLElement).style.background = ""; } + }); }); listDiv.appendChild(btn); }