Fix SearchSelect not showing selected label in single-select search box
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:
@@ -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) ──
|
||||||
|
|||||||
Reference in New Issue
Block a user