Skip to content

Commit b46165d

Browse files
Alexey Panfilovclaude
andcommitted
fix(adminui): preserve search input focus on htmx swap
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent fe722b1 commit b46165d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

internal/adminapi/templates/partials_models_browser.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@
2121
hx-target="#models-browser"
2222
hx-swap="outerHTML"
2323
hx-trigger="input delay:300ms, change">
24-
<input class="form-input" type="search" name="q" placeholder="Search model id…"
25-
value="{{.Filters.Search}}" style="flex:1;min-width:12rem;">
24+
<input id="model-search" class="form-input" type="search" name="q" placeholder="Search model id…"
25+
value="{{.Filters.Search}}" style="flex:1;min-width:12rem;" hx-preserve>
2626
<label><input type="checkbox" name="free" {{if .Filters.Free}}checked{{end}}> Free</label>
2727
<label><input type="checkbox" name="vision" {{if .Filters.Vision}}checked{{end}}> Vision</label>
2828
<label><input type="checkbox" name="tools" {{if .Filters.Tools}}checked{{end}}> Tools</label>

0 commit comments

Comments
 (0)