Keep officer suggestions visible after selection, highlight chosen one

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
justin 2026-04-29 01:18:11 -05:00
parent dcdc6df879
commit 834d2fc1ee

View file

@ -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);
}