Fix SearchSelect not showing selected label in single-select search box
Django CI/CD / test (push) Successful in 45s
Django CI/CD / build-and-push (push) Successful in 1m19s

The search_value was computed but never applied as a value attribute
on the search input element.

https://claude.ai/code/session_01BZHdra2YBPwS3umwsGrgUj
This commit is contained in:
Claude
2026-06-07 18:42:00 +00:00
committed by Lukáš Kucharczyk
parent 061b5e6d8a
commit 547894d8d0
+2
View File
@@ -142,6 +142,8 @@ def SearchSelect(
] ]
if autofocus: if autofocus:
search_attrs.append(("autofocus", "")) search_attrs.append(("autofocus", ""))
if search_value:
search_attrs.append(("value", search_value))
search = Component(tag_name="input", attributes=search_attrs) search = Component(tag_name="input", attributes=search_attrs)
# ── Options panel (pre-rendered only when there is no search_url) ── # ── Options panel (pre-rendered only when there is no search_url) ──