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:
parent
dcdc6df879
commit
834d2fc1ee
1 changed files with 6 additions and 1 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue